prepend method

Iterable<E> prepend(
  1. Iterable<E> elements
)

Returns a new lazy Iterable containing all elements of this collection and then all elements of the given elements collection.

Implementation

Iterable<E> prepend(Iterable<E> elements) sync* {
  yield* elements;
  yield* this;
}