🥷 Clojure Pro Tip 2: group-by

It's amazingly easy to group things in Clojure. The language core provides a group-by function directly. Together with many built-in functions or key functions, it creates a ton of possibilities, and we can also bake our grouping function if none is satisfying. group-by Example from Clojure Koans .