← effectHashSet19Constructors3Models1Guards1Getters2Elements4Combinators3Mapping1Filtering1Mutations2Folding1ConstructorsemptyconstCreates an empty HashSet.fromIterableconstCreates a HashSet from an iterable collection of values.makeconstCreates a HashSet from a variable number of values.ModelsHashSetinterfaceA HashSet is an immutable set data structure that provides efficient storage and retrieval of unique values.GuardsisHashSetconstChecks whether a value is a HashSet.GettersisEmptyconstChecks whether the HashSet is empty.sizeconstReturns the number of values in the HashSet.ElementseveryconstChecks whether all values in the HashSet satisfy the predicate.hasconstChecks whether the HashSet contains the specified value.isSubsetconstChecks whether a HashSet is a subset of another HashSet.someconstChecks whether at least one value in the HashSet satisfies the predicate.CombinatorsdifferenceconstCreates the difference of two HashSets (elements in the first set that are not in the second).intersectionconstCreates the intersection of two HashSets.unionconstCreates the union of two HashSets.MappingmapconstMaps each value in the HashSet using the provided function.FilteringfilterconstFilters the HashSet keeping only values that satisfy the predicate.MutationsaddconstAdds a value to the HashSet, returning a new HashSet.removeconstRemoves a value from the HashSet, returning a new HashSet.FoldingreduceconstReduces the HashSet to a single value by iterating through the values and applying an accumulator function.