Interface IterableExt<T>

Extended Iterable.

interface IterableExt<T> {
    first: undefined | T;
    catch(cb: ((error: any, ctx: IErrorContext<T>) => void)): IterableExt<T>;
}

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.

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

Methods