Last active
December 10, 2015 22:28
-
-
Save rentalcustard/4502272 to your computer and use it in GitHub Desktop.
I suck at Clojure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(apply str (map #(str "String value for " %) some-seq)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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