Basic operations on NonEmptySet
Function or value | Description | ||
Full Usage:
NonEmptySet.add value source
Parameters:
'a
-
The value to add.
source : NonEmptySet<'a>
-
The input set.
Returns: NonEmptySet<'a>
A new set containing value .
|
|
||
Full Usage:
NonEmptySet.contains element source
Parameters:
'a
-
The element to test.
source : NonEmptySet<'a>
-
The input set.
Returns: bool
True if element is in set .
|
|
||
|
|||
|
|||
Full Usage:
NonEmptySet.exists predicate set
Parameters:
'a -> bool
-
The function to test set elements.
set : NonEmptySet<'a>
-
The input set.
Returns: bool
True if any element of set satisfies predicate .
|
|
||
Full Usage:
NonEmptySet.fold folder state set
Parameters:
'a -> 'b -> 'a
-
The accumulating function.
state : 'a
-
The initial state.
set : NonEmptySet<'b>
-
The input set.
Returns: 'a
The final state.
|
|
||
Full Usage:
NonEmptySet.foldBack folder set state
Parameters:
'a -> 'b -> 'b
-
The accumulating function.
set : NonEmptySet<'a>
-
The input set.
state : 'b
-
The initial state.
Returns: 'b
The final state.
|
|
||
Full Usage:
NonEmptySet.forall predicate set
Parameters:
'a -> bool
-
The function to test set elements.
set : NonEmptySet<'a>
-
The input set.
Returns: bool
True if all elements of set satisfy predicate .
|
|
||
Full Usage:
NonEmptySet.isProperSubset set1 set2
Parameters:
NonEmptySet<'a>
-
The potential subset.
set2 : NonEmptySet<'a>
-
The set to test against.
Returns: bool
True if set1 is a proper subset of set2 .
|
|
||
Full Usage:
NonEmptySet.isProperSuperset set1 set2
Parameters:
NonEmptySet<'a>
-
The potential superset.
set2 : NonEmptySet<'a>
-
The set to test against.
Returns: bool
True if set1 is a proper superset of set2 .
|
|
||
Full Usage:
NonEmptySet.isSubset set1 set2
Parameters:
NonEmptySet<'a>
-
The potential subset.
set2 : NonEmptySet<'a>
-
The set to test against.
Returns: bool
True if set1 is a subset of set2 .
|
|
||
Full Usage:
NonEmptySet.isSuperset set1 set2
Parameters:
NonEmptySet<'a>
-
The potential superset.
set2 : NonEmptySet<'a>
-
The set to test against.
Returns: bool
True if set1 is a superset of set2 .
|
|
||
Full Usage:
NonEmptySet.iter action set
Parameters:
'a -> unit
-
The function to apply to each element.
set : NonEmptySet<'a>
-
The input set.
|
|
||
Full Usage:
NonEmptySet.map mapping set
Parameters:
'a -> 'b
-
The function to transform elements of the input set.
set : NonEmptySet<'a>
-
The input set.
Returns: NonEmptySet<'b>
A set containing the transformed elements.
|
|
||
Full Usage:
NonEmptySet.maxElement set
Parameters:
NonEmptySet<'a>
-
The input set.
Returns: 'a
The max value from the set.
|
|||
Full Usage:
NonEmptySet.minElement set
Parameters:
NonEmptySet<'a>
-
The input set.
Returns: 'a
The min value from the set.
|
|||
Full Usage:
NonEmptySet.ofArray array
Parameters:
'a array
-
The input array.
Returns: NonEmptySet<'a>
Non empty set containing the elements of the array.
|
Throws exception for empty array
|
||
Full Usage:
NonEmptySet.ofList list
Parameters:
'a list
-
The input list.
Returns: NonEmptySet<'a>
Non empty set containing the elements of the list.
|
Throws exception for empty list
|
||
Full Usage:
NonEmptySet.ofNonEmptyList list
Parameters:
NonEmptyList<'a>
-
The input list.
Returns: NonEmptySet<'a>
Non empty set containing the elements of the non-empty list.
|
|
||
Full Usage:
NonEmptySet.ofNonEmptySeq source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySet<'a>
Non empty set containing the elements of the non-empty sequence.
|
|
||
Full Usage:
NonEmptySet.ofSeq seq
Parameters:
'a seq
-
The input list.
Returns: NonEmptySet<'a>
Non empty set containing the elements of the list.
|
Throws exception for empty sequence
|
||
Full Usage:
NonEmptySet.ofSet set
Parameters:
Set<'a>
-
The input set.
Returns: NonEmptySet<'a>
Non empty set containing the elements of the set.
|
Throws exception for empty set
|
||
Full Usage:
NonEmptySet.reduce reduction set
Parameters:
'a -> 'a -> 'a
set : NonEmptySet<'a>
Returns: 'a
|
|
||
|
|||
|
|||
|
|||
Full Usage:
NonEmptySet.toNonEmptyList arg1
Parameters:
NonEmptySet<'a>
Returns: NonEmptyList<'a>
|
|||
Full Usage:
NonEmptySet.toNonEmptySeq set
Parameters:
NonEmptySet<'a>
Returns: NonEmptySeq<'a>
|
|||
|
|||
|
|||
|
|||
Full Usage:
NonEmptySet.union set1 set2
Parameters:
NonEmptySet<'a>
-
The first input set.
set2 : NonEmptySet<'a>
-
The second input set.
Returns: NonEmptySet<'a>
The union of set1 and set2 .
|
|
||
Full Usage:
NonEmptySet.unionMany sets
Parameters:
NonEmptyList<NonEmptySet<'a>>
-
The sequence of sets to union.
Returns: NonEmptySet<'a>
The union of the input sets.
|
|