Skip to content

Instantly share code, notes, and snippets.

@brianfay
Created November 22, 2015 01:17
Show Gist options
  • Save brianfay/953e4eceff10a93845ca to your computer and use it in GitHub Desktop.
Save brianfay/953e4eceff10a93845ca to your computer and use it in GitHub Desktop.
my-update-in
(defn my-update-in
[m [k & ks] v]
(if (empty? ks)
(update m k v)
(assoc m k (my-update-in (k m) ks v))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment