:: (a -> a -> Bool) -> [a] -> [[a]] package:base-prelude

The groupBy function is the non-overloaded version of group.