Interface IterableExt<T>

Extended Iterable.

Type Parameters

  • T

Hierarchy

  • Iterable<T>
    • IterableExt

Properties

Methods

Properties

first: undefined | T

A getter that creates a new iterator, iterates to the first element and returns the value.

It is to simplify accessing value of single-element iterables.

Returns

  • first element produced by the iterable;
  • undefined, if the iterable produced nothing.

Methods