intersperse method

  1. @override
RIterator<T> intersperse(
  1. T element
)

Creates a new iterator which places a separator between adjacent items of the original iterator. Similar to join with strings.

Implementation

@override
RIterator<T> intersperse(T element) {
  return RIterator.fromIterable(_intersperseHelper(element));
}