Skip to content

Instantly share code, notes, and snippets.

@ninjudd
Created November 2, 2012 21:28
Show Gist options
  • Save ninjudd/4004457 to your computer and use it in GitHub Desktop.
Save ninjudd/4004457 to your computer and use it in GitHub Desktop.
(letfn [(merge-in* [a b]
(if (map? a)
(merge-with merge-in* a b)
b))]
(defn merge-in
"Merge multiple nested maps."
[& args]
(reduce merge-in* nil args)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment