ListExtensionsConstrained Type
Static members
Static member | Description | ||
Full Usage:
ListExtensionsConstrained.allPairs (list, list2)
Parameters:
'T list
list2 : 'U list
-
The second input list.
Returns: ('T * 'U) list
The resulting list of pairs.
Modifiers: inline Type parameters: 'T, 'U |
|||
Full Usage:
ListExtensionsConstrained.average list
Parameters:
^T list
-
The input list.
Returns: ^T
The average of the elements in the list.
Modifiers: inline Type parameters: ^T |
|
||
Full Usage:
ListExtensionsConstrained.averageBy (list, projection)
Parameters:
'T list
-
The input list.
projection : 'T -> ^U
-
The function to transform the list elements before averaging.
Returns: ^U
The computed average.
Modifiers: inline Type parameters: 'T, ^U |
|
||
Full Usage:
ListExtensionsConstrained.distinct list
Parameters:
'T list
-
The input list.
Returns: 'T list
The result list.
Modifiers: inline Type parameters: 'T |
|||
Full Usage:
ListExtensionsConstrained.insertAt (list, index, value)
Parameters:
'T list
index : int
-
The index where the item should be inserted.
value : 'T
-
The value to insert.
Returns: 'T list
The result list.
Modifiers: inline Type parameters: 'T |
|
||
Full Usage:
ListExtensionsConstrained.insertManyAt (list, index, values)
Parameters:
'T list
index : int
-
The index where the items should be inserted.
values : 'T seq
-
The values to insert.
Returns: 'T list
The result list.
Modifiers: inline Type parameters: 'T |
|
||
Full Usage:
ListExtensionsConstrained.max list
Parameters:
'T list
-
The input list.
Returns: 'T
The maximum element.
Modifiers: inline Type parameters: 'T |
Throws ArgumentException for empty arrays.
|
||
Full Usage:
ListExtensionsConstrained.maxBy (list, projection)
Parameters:
'T list
-
The input list.
projection : 'T -> 'Key
-
The function to transform the elements into a type supporting comparison.
Returns: 'T
The maximum element.
Modifiers: inline Type parameters: 'T, 'Key |
Throws ArgumentException for empty arrays.
|
||
Full Usage:
ListExtensionsConstrained.min list
Parameters:
'T list
-
The input list.
Returns: 'T
The minimum element.
Modifiers: inline Type parameters: 'T |
Throws ArgumentException for empty arrays
|
||
Full Usage:
ListExtensionsConstrained.minBy (list, projection)
Parameters:
'T list
-
The input list.
projection : 'T -> 'Key
-
The function to transform the elements into a type supporting comparison.
Returns: 'T
The minimum element.
Modifiers: inline Type parameters: 'T, 'Key |
Throws ArgumentException for empty arrays.
|
||
Full Usage:
ListExtensionsConstrained.removeAt (list, index)
Parameters:
'T list
index : int
-
The index of the item to be removed.
Returns: 'T list
The result list.
Modifiers: inline Type parameters: 'T |
|
||
Full Usage:
ListExtensionsConstrained.removeManyAt (list, index, count)
Parameters:
'T list
index : int
-
The index of the item to be removed.
count : int
-
The number of items to remove.
Returns: 'T list
The result list.
Modifiers: inline Type parameters: 'T |
|
||
Full Usage:
ListExtensionsConstrained.sort list
Parameters:
'T list
-
The input list.
Returns: 'T list
The sorted list.
Modifiers: inline Type parameters: 'T |
This is not a stable sort, i.e. the original order of equal elements is not necessarily preserved. For a stable sort, consider using Seq.sort.
|
||
Full Usage:
ListExtensionsConstrained.splitAt (list, index)
Parameters:
'T list
index : int
-
The index at which the list is split.
Returns: 'T list * 'T list
The two split lists.
Modifiers: inline Type parameters: 'T |
|
||
Full Usage:
ListExtensionsConstrained.sum list
Parameters:
^T list
-
The input list.
Returns: ^T
The resulting sum.
Modifiers: inline Type parameters: ^T |
|||
Full Usage:
ListExtensionsConstrained.sumBy (list, projection)
Parameters:
'T list
-
The input list.
projection : 'T -> ^U
-
The function to transform the list elements into the type to be summed.
Returns: ^U
The resulting sum.
Modifiers: inline Type parameters: 'T, ^U |
|||
Full Usage:
ListExtensionsConstrained.tryExactlyOne list
Parameters:
'T list
Returns: 'T option
The only element of the list or None.
Modifiers: inline Type parameters: 'T |
|||
Full Usage:
ListExtensionsConstrained.unzip list
Parameters:
('a * 'b) list
-
The input list.
Returns: 'a list * 'b list
The two arrays.
Modifiers: inline Type parameters: 'a, 'b |
|||
Full Usage:
ListExtensionsConstrained.unzip3 list
Parameters:
('a * 'b * 'c) list
-
The input list.
Returns: 'a list * 'b list * 'c list
The tuple of three arrays.
Modifiers: inline Type parameters: 'a, 'b, 'c |
|||
Full Usage:
ListExtensionsConstrained.updateAt (list, index, value)
Parameters:
'T list
index : int
-
The index of the item to be replaced.
value : 'T
-
The new value.
Returns: 'T list
The result list.
Modifiers: inline Type parameters: 'T |
|