prependElement method

Iterable<E> prependElement(
  1. E element
)

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

Implementation

Iterable<E> prependElement(E element) sync* {
  yield element;
  yield* this;
}