Module / v2.0.0-beta.7

@typed/fx/RefHashSet

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

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

Constructors

  • make

    function

    Creates a new RefHashSet from a HashSet, Effect, or Fx.

Derived queries

  • filterValues

    variable

    Filter values creating a Computed value.

  • mapValues

    variable

    Map values to a different type.

  • reduce

    variable

    Reduce the values to a single value.

  • size

    variable

    Get the current size of the RefHashSet.

  • values

    variable

    Get all values as an array.

State models

  • RefHashSet

    interface

    A RefHashSet is a RefSubject specialized over a HashSet.

State predicates

  • every

    variable

    Check if all values satisfy a predicate.

  • has

    variable

    Check if a value exists in the RefHashSet.

  • isEmpty

    variable

    Check if the RefHashSet is empty.

  • isNonEmpty

    variable

    Check if the RefHashSet is non-empty.

  • isSubset

    variable

    Check if this set is a subset of another.

  • some

    variable

    Check if any value satisfies a predicate.

State updates

  • add

    variable

    Add a value to the RefHashSet.

  • clear

    variable

    Clear all values from the RefHashSet.

  • difference

    variable

    Compute the difference with another HashSet.

  • filter

    variable

    Filter values in place.

  • intersection

    variable

    Compute the intersection with another HashSet.

  • map

    variable

    Map values in place (endomorphic).

  • remove

    variable

    Remove a value from the RefHashSet.

  • union

    variable

    Compute the union with another HashSet.