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

13 lines
190 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import system'routines;
import extensions;
public program()
{
2024-03-06 22:25:12 -08:00
auto string := "Hello,How,Are,You,Today";
2023-07-01 11:58:00 -04:00
2024-03-06 22:25:12 -08:00
string.splitBy(",").forEach::(s)
2023-07-01 11:58:00 -04:00
{
console.print(s,".")
}
}