Loading

SPLIT


strings
Since v1.0.0
Available on all platforms

The SPLIT function split a string in segments given a delimiter.

It consumes two parameters from the top of the stack: the delimiter and the string to test matching with. The delimiter must be a string of length 1, i.e. only one character.

The function will return a list with all the segments. If delimiter is not found, the output list contains the input string.

Signature

Examples

'Hello Mr, how are you ?' ' ' SPLIT 'HOH' 'H' SPLIT