Tokenize a string: Difference between revisions
Content added Content deleted
(add E example) |
(→[[Seed7]]: Added Standard ML section and code) |
||
Line 185: | Line 185: | ||
tokens := split("Hello,How,Are,You,Today", ","); |
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]]== |
==[[Tcl]]== |