Tokenize a string: Difference between revisions
Content added Content deleted
(add bqn) |
(Adds slope example) |
||
Line 3,421: | Line 3,421: | ||
=={{header|Slate}}== |
=={{header|Slate}}== |
||
<syntaxhighlight lang="slate">('Hello,How,Are,You,Today' splitWith: $,) join &separator: '.'.</syntaxhighlight> |
<syntaxhighlight lang="slate">('Hello,How,Are,You,Today' splitWith: $,) join &separator: '.'.</syntaxhighlight> |
||
=={{header|Slope}}== |
|||
<syntaxhighlight lang="slope">(display |
|||
(list->string |
|||
(string->list |
|||
"Hello,How,Are,You,Today" |
|||
",") |
|||
"."))</syntaxhighlight> |
|||
{{out}} |
|||
<pre>Hello.How.Are.You.Today</pre> |
|||
=={{header|Smalltalk}}== |
=={{header|Smalltalk}}== |