rsplit method

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

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

Implementation

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