Jump to content

Tokenize a string: Difference between revisions

Add Genie
No edit summary
(Add Genie)
Line 1,173:
JoinStringsWithSeparator(last, ".");
# "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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.