uce/site/doc/pages/split.txt
2026-06-16 12:21:31 +00:00

20 lines
365 B
Plaintext

:sig
StringList split(String str, String delim)
:params
str : string to be split
delim : delimiter
return value : a list of strings
:see
>string
:content
Splits `str` into multiple strings using `delim` as the separator.
Every exact occurrence of `delim` creates a new entry in the returned `StringList`.
:example
print(join(split("a,b,c", ","), "|"), "\n");