Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
user> (def m {:a {:b 2 :c 3} :b {:d 4 :e 5} :c {:f 6}})
user> (reduce (fn [m k] (update-in m [k] (comp vec keys))) m (keys m))
{:c [:f], :b [:e :d], :a [:c :b]}
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.