Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LookVector<T>

Type parameters

  • T

Hierarchy

  • LookVector

Implements

Index

Constructors

constructor

  • new LookVector<T>(array: readonly [Feel, T][], index: {}): LookVector<T>
  • Type parameters

    • T

    Parameters

    • array: readonly [Feel, T][]
    • index: {}
      • [name: string]: number | undefined

    Returns LookVector<T>

Properties

Readonly array

array: readonly [Feel, T][]

Readonly index

index: {}

Type declaration

  • [name: string]: number | undefined

Accessors

size

  • get size(): number
  • Returns number

Methods

Protected copy

  • Parameters

    • array: readonly [Feel, T][]
    • Optional index: {}
      • [name: string]: number | undefined

    Returns LookVector<T>

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

forEach

  • forEach<R>(callback: (value: T, feel: Feel) => void | R): undefined | R
  • forEach<R, S>(callback: (value: T, feel: Feel) => void | R, thisArg: S): undefined | R
  • Type parameters

    • R

    Parameters

    • callback: (value: T, feel: Feel) => void | R
        • (value: T, feel: Feel): void | R
        • Parameters

          • value: T
          • feel: Feel

          Returns void | R

    Returns undefined | R

  • Type parameters

    • R

    • S

    Parameters

    • callback: (value: T, feel: Feel) => void | R
        • (value: T, feel: Feel): void | R
        • Parameters

          • value: T
          • feel: Feel

          Returns void | R

    • thisArg: S

    Returns undefined | R

get

  • get(feel: Feel): undefined | T
  • get(name: string): undefined | T
  • get(index: number): undefined | T
  • Parameters

    Returns undefined | T

  • Parameters

    • name: string

    Returns undefined | T

  • Parameters

    • index: number

    Returns undefined | T

getOr

  • getOr<E>(feel: Feel, elseValue: E): T | E
  • getOr<E>(name: string, elseValue: E): T | E
  • getOr<E>(index: number, elseValue: E): T | E
  • Type parameters

    • E

    Parameters

    • feel: Feel
    • elseValue: E

    Returns T | E

  • Type parameters

    • E

    Parameters

    • name: string
    • elseValue: E

    Returns T | E

  • Type parameters

    • E

    Parameters

    • index: number
    • elseValue: E

    Returns T | E

has

  • has(feel: Feel): boolean
  • has(name: string): boolean
  • Parameters

    Returns boolean

  • Parameters

    • name: string

    Returns boolean

isEmpty

  • isEmpty(): boolean
  • Returns boolean

toString

  • toString(): string
  • Returns string

updated

  • Parameters

    • feel: Feel
    • value: undefined | T

    Returns LookVector<T>

  • Parameters

    Returns LookVector<T>

Static empty

  • Type parameters

    • T

    Returns LookVector<T>

Static fromAny

  • Type parameters

    • T

    Parameters

    Returns LookVector<T>

Static fromArray

  • fromArray<T>(array: readonly [Feel, T][], index?: {}): LookVector<T>
  • Type parameters

    • T

    Parameters

    • array: readonly [Feel, T][]
    • Optional index: {}
      • [name: string]: number | undefined

    Returns LookVector<T>

Static index

  • index<T>(array: readonly [Feel, T][]): {}
  • Type parameters

    • T

    Parameters

    • array: readonly [Feel, T][]

    Returns {}

    • [name: string]: number | undefined

Static of

  • Type parameters

    • T

    Parameters

    • Rest ...feels: [Feel, T][]

    Returns LookVector<T>

Generated using TypeDoc