A Map where each key is a group.
// Returns Map(1: [1, 1], 2: [2, 2], 3: [3])
it.group([1, 1, 2, 2, 3])
// Returns Map(true: [1, 1], false: [2, 2, 3])
it.group([1, 1, 2, 2, 3], x => x < 2)
// Returns Map(1: [{id: 1}], 2: [{id: 2}])
it.group([{id: 1}, {id: 2}], x => x.id)
Groups the passed-in iterable by the given key.