Module / v2.0.0-beta.13

@typed/fx/RefHashMap

27 unique exports available through this public import path, including their members and aliases.

import * as RefHashMap from "@typed/fx/RefHashMap";

Constructors

  • make

    function

    Creates a new RefHashMap from a HashMap, Effect, or Fx.

Derived queries

  • entries

    variable

    Get all entries from the RefHashMap.

  • filterMapValues

    variable

    Filter and map values.

  • filterValues

    variable

    Filter entries creating a Computed value.

  • keys

    variable

    Get all keys from the RefHashMap.

  • mapValues

    variable

    Map values to a different type.

  • reduce

    variable

    Reduce the entries to a single value.

  • size

    variable

    Get the current size of the RefHashMap.

  • values

    variable

    Get all values from the RefHashMap.

Optional queries

  • findFirst

    variable

    Find the first entry satisfying a predicate.

  • get

    variable

    Get the value at a key as a Filtered.

State models

  • RefHashMap

    interface

    A RefHashMap is a RefSubject specialized over a HashMap.

State predicates

  • every

    variable

    Check if all entries satisfy a predicate.

  • has

    variable

    Check if a key exists in the RefHashMap.

  • isEmpty

    variable

    Check if the RefHashMap is empty.

  • isNonEmpty

    variable

    Check if the RefHashMap is non-empty.

  • some

    variable

    Check if any entry satisfies a predicate.

State updates

  • clear

    variable

    Clear all entries from the RefHashMap.

  • filter

    variable

    Filter entries in place.

  • map

    variable

    Map values in place (endomorphic).

  • modify

    variable

    Modify the value at a key if it exists.

  • modifyAt

    variable

    Modify the value at a key using an Option-based update function.

  • remove

    variable

    Remove a key from the RefHashMap.

  • removeMany

    variable

    Remove multiple keys from the RefHashMap.

  • set

    variable

    Set a key-value pair in the RefHashMap.

  • setMany

    variable

    Set multiple key-value pairs in the RefHashMap.

  • union

    variable

    Merge another HashMap into this one.