Skip to content

Instantly share code, notes, and snippets.

@minikomi
Created January 20, 2012 08:07
Show Gist options
  • Save minikomi/1646073 to your computer and use it in GitHub Desktop.
Save minikomi/1646073 to your computer and use it in GitHub Desktop.
4clojure 63
(fn [f a]
(reduce
(fn
[m x]
(assoc m (f x)
(conj (get m (f x) []) x)))
{} a))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment