Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SliceIterator<T>

Type parameters

  • T

Hierarchy

  • SliceIterator

Implements

  • Iterator<T>

Index

Constructors

Properties

Methods

Constructors

constructor

  • new SliceIterator(source: Iterator<T>, start: number, end?: number): SliceIterator
  • Parameters

    • source: Iterator<T>

      Source Iterator

    • start: number

      Zero-based positive start index, inclusive

    • Default value end: number = Infinity

      Zero-based positive end index, exclusive, defaults to end of iterator

    Returns SliceIterator

Properties

Private end

end: number

Zero-based positive end index, exclusive, defaults to end of iterator

Private i

i: number = 0

Private source

source: Iterator<T>

Source Iterator

Private start

start: number

Zero-based positive start index, inclusive

Methods

next

  • next(): IteratorResult<T>

Generated using TypeDoc