split Function
split
produces a list by dividing a given string at all occurrences of a
given separator.
Examples
Related Functions
join
performs the opposite operation: producing a string joining together a list of strings with a given separator.
You are viewing documentation for version v1.1 and earlier. View latest version.
split
produces a list by dividing a given string at all occurrences of a
given separator.
split(separator, string)
> split(",", "foo,bar,baz")
[
"foo",
"bar",
"baz",
]
> split(",", "foo")
[
"foo",
]
> split(",", "")
[
"",
]
join
performs the opposite operation: producing a string
joining together a list of strings with a given separator.