Additional operations on Array
Function or value | Description | ||
Full Usage:
Array.apply f x
Parameters:
('a -> 'b)[]
-
The array of functions.
x : 'a[]
-
The array of values.
Returns: 'b[]
A concatenated array of the resulting arrays from applying each function to each value
|
Example
module Array
from Microsoft.FSharp.Collections
Multiple items
val double: value: 'T -> double (requires member op_Explicit) -------------------- type double = System.Double -------------------- type double<'Measure> = float<'Measure> Multiple items
val int: value: 'T -> int (requires member op_Explicit) -------------------- type int = int32 -------------------- type int<'Measure> = int |
||
Full Usage:
Array.choosei mapping source
Parameters:
int -> 'b -> 'c option
-
The mapping function, taking index and element as parameters.
source : 'b[]
-
The input array.
Returns: 'c[]
Array with values x for each Array value where the function returns Some(x).
|
|||
Full Usage:
Array.findLastSliceIndex slice source
Parameters:
'b[]
source : 'b[]
Returns: int
The index of the slice or None .
|
|||
Full Usage:
Array.findSliceIndex slice source
Parameters:
'b[]
source : 'b[]
Returns: int
The index of the slice.
The index of the slice or None .
|
|
||
Full Usage:
Array.intercalate separator source
Parameters:
'T[]
source : 'T[] seq
Returns: 'T[]
|
|||
Full Usage:
Array.intersperse element source
Parameters:
'T
source : 'T[]
Returns: 'T[]
|
|||
Full Usage:
Array.lift2 f x y
Parameters:
'd -> 'e -> 'f
x : 'd[]
y : 'e[]
Returns: 'f[]
|
|||
Full Usage:
Array.lift3 mapping list1 list2 list3
Parameters:
'e -> 'f -> 'g -> 'h
-
Mapping function taking three element combination as input.
list1 : 'e[]
-
First array.
list2 : 'f[]
-
Second array.
list3 : 'g[]
-
Third array.
Returns: 'h[]
Array with values returned from mapping function.
|
|
||
Full Usage:
Array.map2Shortest f a1 a2
Parameters:
'T -> 'U -> 'c
a1 : 'T[]
a2 : 'U[]
Returns: 'c[]
|
|||
Full Usage:
Array.map3Shortest f a1 a2 a3
Parameters:
'T1 -> 'T2 -> 'T3 -> 'e
a1 : 'T1[]
a2 : 'T2[]
a3 : 'T3[]
Returns: 'e[]
|
|||
Full Usage:
Array.partitionMap mapper source
Parameters:
'T -> Choice<'T1, 'T2>
source : 'T array
Returns: 'T1[] * 'T2[]
A tuple with both resulting arrays.
|
|
||
Full Usage:
Array.replace oldValue newValue source
Parameters:
'T seq
newValue : 'T seq
source : 'T[]
Returns: 'T[]
|
|||
Full Usage:
Array.split separators source
Parameters:
'a[] seq
source : 'a[]
Returns: 'a[] seq
|
|||
Full Usage:
Array.tryFindLastSliceIndex slice source
Parameters:
'b[]
source : 'b[]
Returns: int option
The index of the slice or None .
|
|||
Full Usage:
Array.tryFindSliceIndex slice source
Parameters:
'b[]
source : 'b[]
Returns: int option
The index of the slice or None .
|
|||
Full Usage:
Array.zip3Shortest a1 a2 a3
Parameters:
'T1 array
-
First input array.
a2 : 'T2 array
-
Second input array.
a3 : 'T3 array
-
Third input array.
Returns: ('T1 * 'T2 * 'T3)[]
Array with corresponding tuple of input arrays.
|
|||
Full Usage:
Array.zipShortest a1 a2
Parameters:
'T1 array
-
First input array.
a2 : 'T2 array
-
Second input array.
Returns: ('T1 * 'T2)[]
Array with corresponding pairs of input arrays.
|