str.split

A new array<string> with the parts of string between the separators ("a,b,,c" split by "," gives "a", "b", "", "c"). An empty separator splits into single characters; na gives an empty array.

str.split(string: string, separator: string) -> array<string>

Parameters

Example

levels = str.split("0.5,1,1.5", ",")