mogami-stream - v0.4.0
    Preparing search index...

    Function slice

    • Emits values from start (inclusive) to end (exclusive); omitted end reads to completion.

      Negative bounds count from the end. A negative start waits for completion and retains at most -start values. With a non-negative start and negative end, output trails input by -end values. Non-negative bounds close upstream at end; ranges known to be empty never open upstream.

      Parameters

      • Optionalstart: number
      • Optionalend: number

      Returns <T>(source: AsyncIterable<T>) => Stream<T>

      If a supplied bound is not a safe integer.

    • Emits values from start (inclusive) to end (exclusive); omitted end reads to completion.

      Negative bounds count from the end. A negative start waits for completion and retains at most -start values. With a non-negative start and negative end, output trails input by -end values. Non-negative bounds close upstream at end; ranges known to be empty never open upstream.

      Type Parameters

      • T

      Parameters

      • Optionalstart: number
      • Optionalend: number

      Returns Operator<T, T>

      If a supplied bound is not a safe integer.