Skip to content

Instantly share code, notes, and snippets.

@pbkhrv
Last active January 19, 2016 04:13
Show Gist options
  • Save pbkhrv/41c92557c51accc1889e to your computer and use it in GitHub Desktop.
Save pbkhrv/41c92557c51accc1889e to your computer and use it in GitHub Desktop.
(merge-left & maps) - like merge, but doesn't overwrite previously defined keys
(defn merge-left [& maps]
(apply merge-with (cons (fn [old _] old) maps)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment