peek method

Iterable<E> peek(
  1. void fn(
    1. E element
    )
)

Returns an Iterable consisting of the elements of this iterable, additionally performing the provided action on each element as elements are consumed from the resulting iterable

since 0.0.1

Implementation

Iterable<E> peek(void Function(E element) fn) {
  forEach(fn);
  return this;
}