Skip to content

Instantly share code, notes, and snippets.

@quux00
Created September 9, 2012 23:52
Show Gist options
  • Save quux00/3687995 to your computer and use it in GitHub Desktop.
Save quux00/3687995 to your computer and use it in GitHub Desktop.
;; 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