groupBy package:universum

groupBy operates like group, but uses the provided equality predicate instead of ==.