string split - part-cw/lambdanative GitHub Wiki
(string-split str sep)
string-split split a string into a list at every occurrence of character sep. The separating character is removed in the process
Parameter | Description |
---|---|
str | Input string |
chr | Character where the string is split |
Example
Example 1: Split a string at every character a
> (string-split "An apple tree has apples." #\a)
("An " "pple tree h" "s " "pples.")