Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

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.")
Clone this wiki locally