:: (a -> a) -> [a] -> [[a]] package:utility-ht

Divides a list into sublists such that the members in a sublist share the same key. It uses semantics of groupBy, not that of groupBy.