Skip to content

Instantly share code, notes, and snippets.

@amalloy
Created April 9, 2012 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amalloy/2346469 to your computer and use it in GitHub Desktop.
Save amalloy/2346469 to your computer and use it in GitHub Desktop.
((fn splits [s delims]
(reduce (fn [pieces delim]
(clojure.walk/postwalk (fn [s]
(if (string? s)
(clojure.string/split s delim)
s))
pieces))
s
delims))
"123,45:6,78:9" [#"," #":"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment