SeqExtensionsConstrained Type
Static members
Static member | Description | ||||
Full Usage:
SeqExtensionsConstrained.allPairs (source, source2)
Parameters:
'T seq
source2 : 'U seq
-
The second input sequence.
Returns: ('T * 'U) seq
The resulting sequence of pairs.
Modifiers: inline Type parameters: 'T, 'U |
|
||||
Full Usage:
SeqExtensionsConstrained.average source
Parameters:
^T seq
-
The input sequence.
Returns: ^T
The average.
Modifiers: inline Type parameters: ^T |
The elements are averaged using the
|
||||
Full Usage:
SeqExtensionsConstrained.averageBy (source, projection)
Parameters:
'T seq
-
The input sequence.
projection : 'T -> ^U
-
A function applied to transform each element of the sequence.
Returns: ^U
The average.
Modifiers: inline Type parameters: 'T, ^U |
The elements are averaged using the
|
||||
Full Usage:
SeqExtensionsConstrained.contains (source, value)
Parameters:
'T seq
-
The input sequence.
value : 'T
-
The value to locate in the input sequence.
Returns: bool
True if the input sequence contains the specified element; false otherwise.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
SeqExtensionsConstrained.distinct source
Parameters:
'T seq
-
The input sequence.
Returns: 'T seq
The result sequence.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
SeqExtensionsConstrained.except (source, itemsToExclude)
Parameters:
'T seq
-
A sequence whose elements that are not also in first will be returned.
itemsToExclude : 'T seq
-
A sequence whose elements that also occur in the second sequence will cause those elements to be
removed from the returned sequence.
Returns: 'T seq
A sequence that contains the set difference of the elements of two sequences.
Modifiers: inline Type parameters: 'T |
Note that this function returns a sequence that digests the whole of the first input sequence as soon as the result sequence is iterated. As a result this function should not be used with large or infinite sequences in the first parameter. The function makes no assumption on the ordering of the first input sequence.
|
||||
Full Usage:
SeqExtensionsConstrained.insertAt (source, index, value)
Parameters:
'T seq
index : int
-
The index where the item should be inserted.
value : 'T
-
The value to insert.
Returns: 'T seq
The result sequence.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
SeqExtensionsConstrained.insertManyAt (source, index, values)
Parameters:
'T seq
index : int
-
The index where the items should be inserted.
values : 'T seq
-
The values to insert.
Returns: 'T seq
The result sequence.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
SeqExtensionsConstrained.max source
Parameters:
'T seq
-
The input sequence.
Returns: 'T
The largest element of the sequence.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
SeqExtensionsConstrained.maxBy (source, projection)
Parameters:
'T seq
-
The input sequence.
projection : 'T -> 'U
-
A function to transform items from the input sequence into comparable keys.
Returns: 'T
The largest element of the sequence.
Modifiers: inline Type parameters: 'T, 'U |
|
||||
Full Usage:
SeqExtensionsConstrained.min source
Parameters:
'T seq
-
The input sequence.
Returns: 'T
The smallest element of the sequence.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
SeqExtensionsConstrained.minBy (source, projection)
Parameters:
'T seq
-
The input sequence.
projection : 'T -> 'U
-
A function to transform items from the input sequence into comparable keys.
Returns: 'T
The smallest element of the sequence.
Modifiers: inline Type parameters: 'T, 'U |
|
||||
Full Usage:
SeqExtensionsConstrained.removeAt (source, index)
Parameters:
'T seq
index : int
-
The index of the item to be removed.
Returns: 'T seq
The result sequence.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
SeqExtensionsConstrained.removeManyAt (source, index, count)
Parameters:
'T seq
index : int
-
The index of the item to be removed.
count : int
-
The number of items to remove.
Returns: 'T seq
The result sequence.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
SeqExtensionsConstrained.sort source
Parameters:
'T seq
-
The input sequence.
Returns: 'T seq
The result sequence.
Modifiers: inline Type parameters: 'T |
This function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences. The function makes no assumption on the ordering of the original sequence. This is a stable sort, that is the original order of equal elements is preserved.
|
||||
Full Usage:
SeqExtensionsConstrained.sortDescending source
Parameters:
'T seq
-
The input sequence.
Returns: 'T seq
The result sequence.
Modifiers: inline Type parameters: 'T |
This function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences. The function makes no assumption on the ordering of the original sequence. This is a stable sort, that is the original order of equal elements is preserved.
|
||||
Full Usage:
SeqExtensionsConstrained.sum source
Parameters:
^T seq
-
The input sequence.
Returns: ^T
The computed sum.
Modifiers: inline Type parameters: ^T |
|||||
Full Usage:
SeqExtensionsConstrained.sumBy (source, projection)
Parameters:
'T seq
-
The input sequence.
projection : 'T -> ^U
-
A function to transform items from the input sequence into the type that will be summed.
Returns: ^U
The computed sum.
Modifiers: inline Type parameters: 'T, ^U |
The generated elements are summed using the
|
||||
Full Usage:
SeqExtensionsConstrained.tryExactlyOne source
Parameters:
'T seq
Returns: 'T option
The only element of the sequence or None.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
SeqExtensionsConstrained.updateAt (source, index, value)
Parameters:
'T seq
index : int
-
The index of the item to be replaced.
value : 'T
-
The new value.
Returns: 'T seq
The result sequence.
Modifiers: inline Type parameters: 'T |
|