chickadee » combinators » group-by

(group-by FUNC [EQUALITY equal?]) => procedureprocedure

Returns a procedure that takes a list and groups the elements by some key attribute. Uses the single-argument FUNC to retrieve key values & the EQUALITY function to compare them.