Skip to content

Instantly share code, notes, and snippets.

@fogus
Forked from paulosuzart/collext.clj
Created August 24, 2010 18:46
Show Gist options
  • Save fogus/548081 to your computer and use it in GitHub Desktop.
Save fogus/548081 to your computer and use it in GitHub Desktop.
(def mvec #(vec (map % %&)))
(mvec #(* % %) 1 2 3 4 5)
(mvec #(.toUpperCase %) "test")
;; The original doesn't return vectors -- it returns lazy seqs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment