User Tools

Site Tools


crpl:docs:split

<- CRPL reference <- String Commands

Split

ArgumentsResultNotation
String, Character List s1 s2 – L1

Description

Splits s1 using s2 as the delimiter and leaves the result as a list on the stack.

Examples

# Make a fruity list
"apple banana cherry grape tomato" " " Split ->fruitList

# Make a list of names
"John Doe,Mary Jane,Bubba Smith,Forrest Gump" "," Split ->nameList
crpl/docs/split.txt · Last modified: 2021/02/05 11:44 by Karsten75