This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# probe: what does split on a space give for two spaces in a row? (an empty piece between them, as Python's str.split(" ") does)
|
||||
# expect-stdout: 3
|
||||
# expect-stdout: [a]
|
||||
# expect-stdout: []
|
||||
# expect-stdout: [b]
|
||||
def main():
|
||||
var parts = String("a b").split(" ")
|
||||
print(len(parts))
|
||||
for p in parts:
|
||||
print("[" + String(p) + "]")
|
||||
Reference in new issue
Block a user