Constructors
makefunction
Creates a new
RefHashSetfrom a HashSet,Effect, orFx.
Derived queries
filterValuesvariable
Filter values creating a Computed value.
mapValuesvariable
Map values to a different type.
reducevariable
Reduce the values to a single value.
sizevariable
Get the current size of the RefHashSet.
valuesvariable
Get all values as an array.
State models
RefHashSetinterface
A RefHashSet is a RefSubject specialized over a HashSet.
State predicates
everyvariable
Check if all values satisfy a predicate.
hasvariable
Check if a value exists in the RefHashSet.
isEmptyvariable
Check if the RefHashSet is empty.
isNonEmptyvariable
Check if the RefHashSet is non-empty.
isSubsetvariable
Check if this set is a subset of another.
somevariable
Check if any value satisfies a predicate.
State updates
addvariable
Add a value to the RefHashSet.
clearvariable
Clear all values from the RefHashSet.
differencevariable
Compute the difference with another HashSet.
filtervariable
Filter values in place.
intersectionvariable
Compute the intersection with another HashSet.
mapvariable
Map values in place (endomorphic).
removevariable
Remove a value from the RefHashSet.
unionvariable
Compute the union with another HashSet.