Function streamOf

  • Creates a Stream from given elements.

    Since JavaScript creates the temporary array for rest parameters, which will be disposed afterwards, this function treats this array as modifiable. This means that if you provide an explicit array using Function.prototype.apply(), the behavior will be just like streamFromModifiable.

    Type Parameters

    • T

      Elements type

    Parameters

    • ...input: T[]

      Elements to create a stream from

    Returns Stream<T>

    A stream created from the provided elements.