intersperse method

  1. @override
Iter<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
@pragma("vm:prefer-inline")
Iter<T> intersperse(T element) {
  return Iter.fromIterable(_intersperseHelper(element));
}