Created
January 27, 2016 04:59
-
-
Save tstirrat15/d7f6492961476a24c705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn my-assoc-in | |
"Implements assoc-in" | |
[m [k & ks] v] | |
(if (empty? ks) | |
(assoc m k v) | |
(assoc m k (recur (k m) ks v)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment