Skip to content

Instantly share code, notes, and snippets.

@francoisdevlin
Created January 12, 2010 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francoisdevlin/275159 to your computer and use it in GitHub Desktop.
Save francoisdevlin/275159 to your computer and use it in GitHub Desktop.
(cond
(instance? clojure.lang.IPeristentCollection form) (outer (into (empty form) (map inner form))
(seq? form) (outer (doall (map inner form)))
:else (outer form))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment