Similarly to uniq, group iterates consecutive elements of the given range. The element type is Tuple!(ElementType!R, uint) because it includes the count of grouped elements seen. Elements are grouped by assessing using the predicate pred, by default "a == b". The predicate is called for pairs of neighboring elements.
Similarly to uniq, group iterates consecutive elements of the given range. The element type is Tuple!(ElementType!R, uint) because it includes the count of grouped elements seen. Elements are grouped by assessing using the predicate pred, by default "a == b". The predicate is called for pairs of neighboring elements.