Tokenize a string: Difference between revisions
Add CFEngine example
(Tokenize a string en BASIC256) |
(Add CFEngine example) |
||
Line 1,366:
print(".".join(tokens));
}</lang>
=={{header|CFEngine}}==
<lang cfengine>bundle agent main
{
reports:
"${with}" with => join(".", splitstring("Hello,How,Are,You,Today", ",", 99));
}
</lang>
{{out}}
<pre>cf-agent -KIf ./tokenize-a-string.cf
R: Hello.How.Are.You.Today</pre>
See https://docs.cfengine.com/docs/master/reference-functions.html for a complete list of available functions.
=={{header|Clojure}}==
|