[Home] Type Microsoft.FSharp.Collections.HashSet


Hash tables based on F# structural "hash" and (=) functions.

Full Type Signature

type HashSet <'a>
  with
    member Remove : 'a -> unit
    member Iterate : ('a -> unit) -> unit
    member GetLongestChain : unit -> 'a list
    member Fold : ('a -> 'b -> 'b) -> 'b -> 'b
    static member Create : int -> HashSet<'a>
    member Copy : unit -> HashSet<'a>
    member Contains : 'a -> bool
    member Clear : unit -> unit
    member Add : 'a -> unit
  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>
Make a shallow copy of 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 GetLongestChain : unit -> 'a list
Use to debug poorly performing hash tables
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 : int -> HashSet<'a>

See Also

Microsoft.FSharp.Collections


Documentation for assembly fslib, version 1.1.10.1, generated using F# version 1.1.10.1