transducers
group-by and Transducers
One of the random, but very useful, functions in clojure.core is the venerable group-by. Simply take a collection of something, a function to extract a key, and it returns a map of the same data indexed by the key. It's incredibly useful, I use it all the time. But it's also an…