| Value | Description |
[<OCamlCompatibilityAttribute ()>]
val cardinal : Set<'T> -> int | |
[<OCamlCompatibilityAttribute ()>]
val elements : Set<'T> -> 'T list |
The elements of the set as a list.
|
[<OCamlCompatibilityAttribute ()>]
val inter : Set<'T> -> Set<'T> -> Set<'T> |
Compute the intersection of the two sets.
|
[<OCamlCompatibilityAttribute ()>]
val Make : ('T -> 'T -> int) -> Provider<'T> |
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.
|
[<OCamlCompatibilityAttribute ()>]
val MakeTagged :
'Tag -> Provider<'T,'Tag> (requires 'Tag :> IComparer<'T>) |
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())
|