Gen.group_by returns a generator of lists