RosettaCodeData/Task/Tokenize-a-string/Elena/tokenize-a-string.elena

13 lines
187 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
import system'routines;
import extensions;
2016-12-05 22:15:40 +01:00
2019-09-12 10:33:56 -07:00
public program()
{
var string := "Hello,How,Are,You,Today";
2016-12-05 22:15:40 +01:00
2019-09-12 10:33:56 -07:00
string.splitBy:",".forEach:(s)
{
console.print(s,".")
}
}