Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HashMap<K, V>

An immutable HashMap

Type parameters

  • K

  • V

Hierarchy

  • HashMap

Implements

Index

Accessors

asArray

  • get asArray(): V[]

isEmpty

  • get isEmpty(): boolean

Methods

delete

filter

  • filter(fn: function): HashMap<K, V>

fold

  • fold<S>(S: S, fn: function): S

fold0

  • fold0<S>(S: S, fn: function): S
  • Folds a [[HasMap]] into a value, by calling the function on each key value pair.

    Type parameters

    • S

    Parameters

    • S: S
    • fn: function
        • (V: V, K: K, S: S): S
        • Parameters

          • V: V
          • K: K
          • S: S

          Returns S

    Returns S

get

has

  • has(k: K): boolean

map

  • map<B>(ab: function): HashMap<K, B>

set

Static of

  • of<K, V>(entries?: ReadonlyArray<keyof [K, V]>): HashMap<K, V>

Generated using TypeDoc