Skip to content

Instantly share code, notes, and snippets.

@rentalcustard
Last active December 10, 2015 22:28
Show Gist options
  • Save rentalcustard/4502272 to your computer and use it in GitHub Desktop.
Save rentalcustard/4502272 to your computer and use it in GitHub Desktop.
I suck at Clojure
(apply str (map #(str "String value for " %) some-seq))
(defn map-fn [apply-fn fn seq]
(apply apply-fn (map fn seq)))
(defn map-str [fn seq]
(map-fn str fn seq))
(map-str #(str "String value for " %) some-seq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment