Tokenize a string: Difference between revisions
Content added Content deleted
(→dt: add) |
imported>Maxima enthusiast |
||
Line 2,408: | Line 2,408: | ||
<syntaxhighlight lang="maxima">l: split("Hello,How,Are,You,Today", ",")$ |
<syntaxhighlight lang="maxima">l: split("Hello,How,Are,You,Today", ",")$ |
||
printf(true, "~{~a~^.~}~%", l)$</syntaxhighlight> |
printf(true, "~{~a~^.~}~%", l)$</syntaxhighlight> |
||
A slightly different way |
|||
<syntaxhighlight lang="maxima"> |
|||
split("Hello,How,Are,You,Today",",")$ |
|||
simplode(%,"."); |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
"Hello.How.Are.You.Today" |
|||
</pre> |
|||
=={{header|MAXScript}}== |
=={{header|MAXScript}}== |