withEnd method

Iterable<E> withEnd(
  1. E end
)

This iterable with end at the end.

Implementation

Iterable<E> withEnd(E end) sync* {
  for (final e in this) {
    yield e;
  }
  yield end;
}