Created
September 9, 2012 23:52
-
-
Save quux00/3687995 to your computer and use it in GitHub Desktop.
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
;; answer from unlogic to 4clojure.com problem 28 | |
(defn flat [node] | |
(reduce #(concat % (if (coll? %2) (flat %2) [%2])) | |
() | |
node)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment