@szilanor/stream
    Preparing search index...

    Variable streamConst

    stream: <T>(iterable?: Iterable<T, any, any>) => Stream<T> = from

    Type declaration

      • <T>(iterable?: Iterable<T, any, any>): Stream<T>
      • Returns a Stream that yields the elements of the Iterable parameter.

        Type Parameters

        • T

          Type of items in the Stream.

        Parameters

        • Optionaliterable: Iterable<T, any, any>

          Iterable to create the Stream from.

        Returns Stream<T>

        Stream that yields the elements of the Iterable.

        const result = from('ABCD');
        console.log([...result]); // ['A', 'B', 'C', 'D']