Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

  • List

Index

Constructors

Private constructor

  • new List<T>(): List<T>

Properties

elementAt

elementAt: (index: number) => T

Type declaration

    • (index: number): T
    • Parameters

      • index: number

      Returns T

getFirst

getFirst: () => T

Type declaration

    • (): T
    • Returns T

getIsEmpty

getIsEmpty: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

getIsNotEmpty

getIsNotEmpty: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

getLast

getLast: () => T

Type declaration

    • (): T
    • Returns T

getLength

getLength: () => number

Type declaration

    • (): number
    • Returns number

map

map: <R>(f: (e: T) => R) => List<R>

Type declaration

    • <R>(f: (e: T) => R): List<R>
    • Type parameters

      • R

      Parameters

      • f: (e: T) => R
          • (e: T): R
          • Parameters

            • e: T

            Returns R

      Returns List<R>

unwrap

unwrap: () => T[]

Type declaration

    • (): T[]
    • Returns T[]

where

where: (f: (e: T) => boolean) => List<T>

Type declaration

    • (f: (e: T) => boolean): List<T>
    • Parameters

      • f: (e: T) => boolean
          • (e: T): boolean
          • Parameters

            • e: T

            Returns boolean

      Returns List<T>

Methods

Static fromArray

  • fromArray<T>(arr: T[]): List<T>

Generated using TypeDoc