split method

RIterator<Slice<T>> split(
  1. bool pred(
    1. T
    )
)

Returns an iterator over subslices separated by elements that match pred. The matched element is not contained in the subslices. see splitInclusive also.

Implementation

RIterator<Slice<T>> split(bool Function(T) pred) {
  return RIterator(_splitHelper(pred).iterator);
}