Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a list of values with lazy deserialization.

Type parameters

  • T

Hierarchy

  • ReadOnlyLazyList

Index

Methods

[Symbol.iterator]

  • [Symbol.iterator](): Iterator<T>
  • Returns Iterator<T>

get

  • get(index: number): T
  • Returns list's element at the specified index.

    Parameters

    • index: number

      element's index

    Returns T

    element

size

  • size(): number
  • Returns the size of the list.

    Returns number

slice

  • Returns a slice of the list.

    Parameters

    • start: number

      The beginning of the specified portion of the list (inclusive).

    • Optional end: number

      The end of the specified portion of the list (exclusive).

    Returns ReadOnlyLazyList<T>

toArray

  • toArray(): T[]
  • Returns an array that contains all elements of this list in proper sequence.

    Returns T[]

values

  • values(): Iterator<T>
  • Returns an iterator for elements in the list.

    Returns Iterator<T>

Generated using TypeDoc