Tokenize a string: Difference between revisions

Content added Content deleted
Line 1,656: Line 1,656:
A := []
A := []
"Hello,How,Are,You,Today" ? {
"Hello,How,Are,You,Today" ? {
while put(A, 1(tab(upto(',')|0),=","))
while put(A, 1(tab(upto(',')),=","))
put(A,tab(0))
put(A,tab(0))
}
}
Line 1,678: Line 1,678:
write()
write()
end</lang>
end</lang>

One wonders what the expected output should be with the input string ",,,,".


=={{header|Io}}==
=={{header|Io}}==