Interface ILazyStream<T>

Interface for the core LazyStream methods

interface ILazyStream<T> {
    filter(fn: ((value: T) => boolean)): ILazyStream<T>;
    map<U>(fn: ((value: T) => U)): ILazyStream<U>;
    take(n: number): ILazyStream<T>;
    toArray(): T[];
}

Type Parameters

  • T

Implemented by

Methods