groupBy method

RIterator<Slice<T>> groupBy(
  1. bool compare(
    1. T,
    2. T
    )
)

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);
}