groupBy method
Returns an %iterator over the slice producing non-overlapping runs of elements using the predicate to separate them.
Implementation
RIterator<Slice<T>> groupBy(bool Function(T, T) compare) {
return RIterator(_groupByHelper(compare).iterator);
}