Groups the collection into sets by the returned key
{Function} to compute the group key of an item in the collection
Groups the collection into sets by the returned key