Documentation
    Preparing search index...

    Class SliceableAbstract

    Index

    Constructors

    Methods

    • Skip the first N elements of an iterable, or the last N elements if N is negative.

      Type Parameters

      • A

      Parameters

      • this: Iterable<A>
      • count: number

      Returns Iterable<A>

    • Returns a slice of the iterable.

      Type Parameters

      • A

      Parameters

      • this: Iterable<A>
      • start: number = 0
      • end: number = Infinity

      Returns Generator<any, void, unknown>

    • Splice the iterable.

      Type Parameters

      • A

      Parameters

      • this: Iterable<A>
      • start: number
      • deleteCount: number = Infinity
      • ...items: A[]

      Returns Generator<any, void, unknown>

    • Take the first N elements of an iterable, or the last N elements if N is negative.

      Type Parameters

      • A

      Parameters

      • this: Iterable<A>
      • count: number

      Returns Generator<any, void, any>