splitInclusive method

Iter<Slice<T>> splitInclusive(
  1. bool pred(
    1. T
    )
)

Returns an iterator over subslices separated by elements that match pred. The matched element is contained in the end of the previous subslice as a terminator. see split also.

Implementation

Iter<Slice<T>> splitInclusive(bool Function(T) pred) {
  return Iter(_splitInclusiveHelper(pred).iterator);
}