intersperseWith method

  1. @override
RIterator<T> intersperseWith(
  1. T f()
)

Creates a new iterator which places an item generated by separator between adjacent items of the original iterator. The closure will be called each time to generate the separator.

Implementation

@override
RIterator<T> intersperseWith(T Function() f) {
  return RIterator.fromIterable(_intersperseWithHelper(f));
}