ArrayExtensionsConstrained Type
Static members
Static member | Description | ||||
Full Usage:
ArrayExtensionsConstrained.allPairs (array, array2)
Parameters:
'T[]
array2 : 'U[]
-
The second input array.
Returns: ('T * 'U)[]
The resulting array of pairs.
Modifiers: inline Type parameters: 'T, 'U |
|
||||
Full Usage:
ArrayExtensionsConstrained.average array
Parameters:
^T[]
-
The input array.
Returns: ^T
The average of the elements in the array.
Modifiers: inline Type parameters: ^T |
|
||||
Full Usage:
ArrayExtensionsConstrained.averageBy (array, projection)
Parameters:
'T[]
-
The input array.
projection : 'T -> ^U
-
The function to transform the array elements before averaging.
Returns: ^U
The computed average.
Modifiers: inline Type parameters: 'T, ^U |
|
||||
Full Usage:
ArrayExtensionsConstrained.contains (array, value)
Parameters:
'T[]
-
The input array.
value : 'T
-
The value to locate in the input array.
Returns: bool
True if the input array contains the specified element; false otherwise.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
ArrayExtensionsConstrained.distinct array
Parameters:
'T[]
-
The input array.
Returns: 'T[]
The result array.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
ArrayExtensionsConstrained.insertAt (array, index, value)
Parameters:
'T[]
index : int
-
The index where the item should be inserted.
value : 'T
-
The value to insert.
Returns: 'T[]
The result array.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
ArrayExtensionsConstrained.insertManyAt (array, index, values)
Parameters:
'T[]
index : int
-
The index where the items should be inserted.
values : 'T seq
-
The values to insert.
Returns: 'T[]
The result array.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
ArrayExtensionsConstrained.max array
Parameters:
'T[]
-
The input array.
Returns: 'T
The maximum element.
Modifiers: inline Type parameters: 'T |
Throws ArgumentException for empty arrays.
|
||||
Full Usage:
ArrayExtensionsConstrained.maxBy (array, projection)
Parameters:
'T[]
-
The input array.
projection : 'T -> 'a
-
The function to transform the elements into a type supporting comparison.
Returns: 'T
The maximum element.
Modifiers: inline Type parameters: 'T, 'a |
Throws ArgumentException for empty arrays.
|
||||
Full Usage:
ArrayExtensionsConstrained.min array
Parameters:
'T[]
-
The input array.
Returns: 'T
The minimum element.
Modifiers: inline Type parameters: 'T |
Throws ArgumentException for empty arrays
|
||||
Full Usage:
ArrayExtensionsConstrained.minBy (array, projection)
Parameters:
'T[]
-
The input array.
projection : 'T -> 'a
-
The function to transform the elements into a type supporting comparison.
Returns: 'T
The minimum element.
Modifiers: inline Type parameters: 'T, 'a |
Throws ArgumentException for empty arrays.
|
||||
Full Usage:
ArrayExtensionsConstrained.removeAt (array, index)
Parameters:
'T[]
index : int
-
The index of the item to be removed.
Returns: 'T[]
The result array.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
ArrayExtensionsConstrained.removeManyAt (array, index, count)
Parameters:
'T[]
index : int
-
The index of the item to be removed.
count : int
-
The number of items to remove.
Returns: 'T[]
The result array.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
ArrayExtensionsConstrained.sort array
Parameters:
'T[]
-
The input array.
Returns: 'T[]
The sorted array.
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:
ArrayExtensionsConstrained.sortDescending array
Parameters:
'T[]
-
The input array.
Returns: 'T[]
The sorted array.
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:
ArrayExtensionsConstrained.sortInPlace array
Parameters:
'a[]
-
The input array.
Modifiers: inline Type parameters: 'a |
|||||
Full Usage:
ArrayExtensionsConstrained.splitAt (array, index)
Parameters:
'T[]
index : int
-
The index at which the array is split.
Returns: 'T[] * 'T[]
The two split arrays.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
ArrayExtensionsConstrained.sum array
Parameters:
^T[]
-
The input array.
Returns: ^T
The resulting sum.
Modifiers: inline Type parameters: ^T |
|||||
Full Usage:
ArrayExtensionsConstrained.sumBy (array, projection)
Parameters:
'T[]
-
The input array.
projection : 'T -> ^U
-
The function to transform the array elements into the type to be summed.
Returns: ^U
The resulting sum.
Modifiers: inline Type parameters: 'T, ^U |
|||||
Full Usage:
ArrayExtensionsConstrained.tryExactlyOne array
Parameters:
'T[]
Returns: 'T option
The only element of the array or None.
Modifiers: inline Type parameters: 'T |
|
||||
Full Usage:
ArrayExtensionsConstrained.unzip array
Parameters:
('a * 'b)[]
-
The input array.
Returns: 'a[] * 'b[]
The two arrays.
Modifiers: inline Type parameters: 'a, 'b |
|||||
Full Usage:
ArrayExtensionsConstrained.unzip3 array
Parameters:
('a * 'b * 'c)[]
-
The input array.
Returns: 'a[] * 'b[] * 'c[]
The tuple of three arrays.
Modifiers: inline Type parameters: 'a, 'b, 'c |
|||||
Full Usage:
ArrayExtensionsConstrained.updateAt (array, index, value)
Parameters:
'T[]
index : int
-
The index of the item to be replaced.
value : 'T
-
The new value.
Returns: 'T[]
The result array.
Modifiers: inline Type parameters: 'T |
|