Splits the string on instances of 'pattern'. Returns a sequence of
strings. Optional 'limit' argument is the maximum number of
splits. Like Perl's 'split'.
(defn re-split "Splits the string on instances of 'pattern'. Returns a sequence of strings. Optional 'limit' argument is the maximum number of splits. Like Perl's 'split'." ([^Pattern pattern string] (seq (. pattern (split string)))) ([^Pattern pattern string limit] (seq (. pattern (split string limit)))))
Comments top
No comments for re-split. Log in to add a comment.