Splits an iterator into arrays of equal, adjacent items.
type of the item
the iterable
the comparator, used for equality checking
Optional
the equality comparison
Splits an iterator into arrays of equal, adjacent items.
Type Param: T
type of the item
Param: iterable
the iterable
Param: cmp
the comparator, used for equality checking