Skip to content

Instantly share code, notes, and snippets.

@Raynes Raynes/gist:6643618 forked from bitemyapp/gist:6643575
Last active Dec 23, 2015

Embed
What would you like to do?
(defn ?assoc-transform
"(?assoc-transform {:a 1} :a 2 sequential? vector) => {:a [1 2]}"
[m k v test transform]
(let [val (m k)]
(assoc m k
(if-let [okay (test val)]
v
(transform val v)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.