Skip to content

Instantly share code, notes, and snippets.

@the-kenny
Created February 6, 2010 12:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
(reduce #(if (and (string? %2) (string? (last %1)))
(conj (vec (drop-last %1)) (str (last %1) %2))
(conj %1 %2))
[] [1 2 "foo" "bar" 42 5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment