rsplit method

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

Returns an iterator over subslices separated by elements that match pred, starting at the end of the slice and working backwards. The matched element is not contained in the subslices.

Implementation

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