[Home] Module Microsoft.FSharp.Compatibility.OCaml.Set


Type Definitions

TypeDescription
type Provider Note: an abbreviation for Provider<'a,IComparer<'a>>
type Provider A collection of operations for creating and using sets based on a particular comparison function. The 'tag' type parameter is used to track information about the comparison function.

Values

ValueDescription
val Make : ('a -> 'a -> int) -> Provider<'a>
Build a collection of operations for creating and using maps based on a single consistent comparison function. This returns a record that contains the functions you use to create and manipulate maps all of which use this comparison function. The returned value is much like an ML module. Use MakeTagged if you want additional type safety that guarantees that two sets based on different comparison functions can never be combined in inconsistent ways.
val MakeTagged : 'tag -> Provider<'a,'tag> when 'tag :> IComparer<'a>
A functor to build a collection of operations for creating and using sets based on the given comparison function. This returns a record that contains the functions you use to create and manipulate maps of this kind. The returned value is much like an ML module. To use this function you need to define a new named class that implements IComparer and pass an instance of that class as the first argument. For example: type MyComparer() = interface IComparer<string> with member self.Compare(x,y) = ... let MyStringSetProvider = Set.MakeTagged(new MyComparer())

Deprecated/Unsafe Type Definitions

TypeDescription
type CSet

Note: This type has been renamed. Consider using Tagged.Set<'a> instead

Sets with a user-defined comparison function. Note: an abbreviation for Set<'a>
type CSetOps

Note: This type has been renamed. Consider using Set.Provider<'a> instead

Note: an abbreviation for Provider<'a>

See Also

Microsoft.FSharp.Compatibility.OCaml


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