Set<'T, 'ComparerTag> Type
Immutable sets based on binary trees, default tag Immutable sets where a constraint tag carries information about the class of key-comparer being used.
Instance members
Instance member |
Description
|
A useful shortcut for
|
|
Full Usage:
this.Choose
Returns: 'T
|
The number of elements in the set.
|
Full Usage:
this.Contains
Parameters:
'T
Returns: bool
|
A useful shortcut for
|
Full Usage:
this.Count
Returns: int
|
Return the number of elements in the set.
|
Full Usage:
this.Exists
Parameters:
'T -> bool
Returns: bool
|
Test if any element of the collection satisfies the given predicate. If the input function is f and the elements are i0...iN then computes p i0 or ... or p iN.
|
|
Return a new collection containing only the elements of the collection for which the given predicate returns True.
|
Full Usage:
this.Fold
Parameters:
'T -> 'State -> 'State
arg1 : 'State
Returns: 'State
|
Apply the given accumulating function to all the elements of the set.
|
Full Usage:
this.ForAll
Parameters:
'T -> bool
Returns: bool
|
Test if all elements of the collection satisfy the given predicate. If the input function is f and the elements are i0...iN and j0...jN then computes p i0 && ... && p iN.
|
Full Usage:
this.IsEmpty
Returns: bool
|
A useful shortcut for
|
|
Evaluates to True if all elements of the second set are in the first.
|
|
Evaluates to True if all elements of the first set are in the second.
|
Full Usage:
this.Iterate
Parameters:
'T -> unit
|
Apply the given function to each binding in the collection.
|
Full Usage:
this.MaximumElement
Returns: 'T
|
Returns the highest element in the set according to the ordering being used for the set.
|
Full Usage:
this.MinimumElement
Returns: 'T
|
Returns the lowest element in the set according to the ordering being used for the set.
|
|
|
|
A useful shortcut for
|
Full Usage:
this.ToArray
Returns: 'T array
|
The elements of the set as an array.
|
Full Usage:
this.ToList
Returns: 'T list
|
The elements of the set as a list.
|
Static members
Static member |
Description
|
|
|
|
|
|
|
Full Usage:
Set.Create(arg1, arg2)
Parameters:
'ComparerTag
arg1 : 'T seq
Returns: Set<'T, 'ComparerTag>
|
A set based on the given comparer containing the given initial elements.
|
|
|
|
|
|
|
|
|
Full Usage:
Set.Singleton(arg1, arg2)
Parameters:
'ComparerTag
arg1 : 'T
Returns: Set<'T, 'ComparerTag>
|
A singleton set based on the given comparison operator.
|
|