Menu
Open source

split

split produces a list by dividing a string at all occurrences of a separator.

alloy
split(list, separator)

Examples

alloy
> split("foo,bar,baz", "," )
["foo", "bar", "baz"]

> split("foo", ",")
["foo"]

> split("", ",")
[""]