Tokenize a string: Difference between revisions

→‎[[Seed7]]: Added Standard ML section and code
(add E example)
(→‎[[Seed7]]: Added Standard ML section and code)
Line 185:
 
tokens := split("Hello,How,Are,You,Today", ",");
 
==[[Standard ML]]==
[[Category:Standard ML]]
 
val splitter = String.tokens (fn c => c = #",");
val main = (String.concatWith ".") o splitter;
 
Test:
 
- main "Hello,How,Are,You,Today"
<i>val it = "Hello.How.Are.You.Today" : string</i>
 
==[[Tcl]]==
Anonymous user