Tokenize a string: Difference between revisions
Content added Content deleted
No edit summary |
(Add Genie) |
||
Line 1,173: | Line 1,173: | ||
JoinStringsWithSeparator(last, "."); |
JoinStringsWithSeparator(last, "."); |
||
# "Hello.How.Are.You.Today"</lang> |
# "Hello.How.Are.You.Today"</lang> |
||
=={{header|Genie}}== |
|||
<lang genie>[indent=4] |
|||
init |
|||
str:string = "Hello,How,Are,You,Today" |
|||
words:array of string[] = str.split(",") |
|||
joined:string = string.joinv(".", words) |
|||
print joined</lang> |
|||
{{out}} |
|||
<pre>prompt$ valac tokenize.gs |
|||
prompt$ ./tokenize |
|||
Hello.How.Are.You.Today</pre> |
|||
=={{header|Go}}== |
=={{header|Go}}== |