[Home] Type Microsoft.FSharp.Collections.Tagged.HashSet


Mutable hash sets where a constraint tag tracks information about the hash/equality functions used for the hashing. When the tag is Tags.StructuralHash this is identical to HashSet.

Full Type Signature

type HashSet<'a,'hashTag when 'hashTag :> IEqualityComparer<'a>>
  with
    interface IEnumerable
    interface IEnumerable<'a>
    member Add : 'a -> unit
    member Clear : unit -> unit
    member Contains : 'a -> bool
    member Copy : unit -> HashSet<'a,'hashTag>
    [<Obsolete ("HashStats are no longer supported. The HashStats argument will be ignored")>]
    static member Create : 'hashTag * HashStats * int -> HashSet<'a,'hashTag>
    static member Create : 'hashTag * int -> HashSet<'a,'hashTag>
    member Fold : ('a -> 'b -> 'b) -> ('b -> 'b)
    [<Obsolete ("GetLongestChain is no longer supported. It will return the empty list")>]
    member GetLongestChain : unit -> 'a list
    member Iterate : ('a -> unit) -> unit
    member Remove : 'a -> unit
    member Count : int
  end

Instance Members

MemberDescription
member Add : 'a -> unit
Add an element to the collection
member Clear : unit -> unit
Clear all elements from the set
member Contains : 'a -> bool
Test if the set contains the given element
member Copy : unit -> HashSet<'a,'hashTag>
Make a shallow copy of the set
member Count : int
The number of elements in the set
member Fold : ('a -> 'b -> 'b) -> ('b -> 'b)
Apply the given function to the set threading the accumulating parameter through the sequence of function applications
member Iterate : ('a -> unit) -> unit
Apply the given function to each binding in the hash table
member Remove : 'a -> unit
Remove the given element from the set

Static Members

MemberDescription
member Create : 'hashTag * int -> HashSet<'a,'hashTag>
Create a new empty mutable hash set with an internal bucket array of the given approximate size and with the given key hash/equality functions

Deprecated Members

MemberDescription
[<Obsolete
  ("HashStats are no longer supported. The HashStats argument will be ignored")>]
member Create : 'hashTag * HashStats * int -> HashSet<'a,'hashTag>

Note: HashStats are no longer supported. The HashStats argument will be ignored

Create a new empty mutable hash set with an internal bucket array of the given approximate size and with the given key hash/equality functions and the given HashStats collector
[<Obsolete
  ("GetLongestChain is no longer supported. It will return the empty list")>]
member GetLongestChain : unit -> 'a list

Note: GetLongestChain is no longer supported. It will return the empty list

Use to debug poorly performing hash tables

See Also

Microsoft.FSharp.Collections.Tagged


Documentation for assembly FSharp.Core, version 1.9.4.19, generated using F# version 1.9.4.19