Splits the string into a lazy sequence of substrings, alternating
between substrings that match the patthern and the substrings
between the matches. The sequence always starts with the substring
before the first match, or an empty string if the beginning of the
string matches.
For example: (re-partition #"[a-z]+" "abc123def")
Returns: ("" "abc" "123" "def")
Comments top
No comments for re-partition. Log in to add a comment.