Additional operations on ResizeArray
Function or value | Description | ||
Full Usage:
ResizeArray.apply f ra
Parameters:
ResizeArray<('T -> 'U)>
-
The functions.
ra : ResizeArray<'T>
-
The values.
Returns: ResizeArray<'U>
A concatenated list of the resulting ResizeArray after applying each function to each value.
|
Example
Multiple items
module List from Microsoft.FSharp.Collections -------------------- type List<'T> = | op_Nil | op_ColonColon of Head: 'T * Tail: 'T list interface IReadOnlyList<'T> interface IReadOnlyCollection<'T> interface IEnumerable interface IEnumerable<'T> member GetReverseIndex: rank: int * offset: int -> int member GetSlice: startIndex: int option * endIndex: int option -> 'T list static member Cons: head: 'T * tail: 'T list -> 'T list member Head: 'T member IsEmpty: bool member Item: index: int -> 'T with get ... 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 type 'T list = List<'T>
|
||
Full Usage:
ResizeArray.findLastSliceIndex slice source
Parameters:
'a[]
source : 'a[]
Returns: int
The index of the slice.
|
|
||
Full Usage:
ResizeArray.findSliceIndex slice source
Parameters:
'a[]
source : 'a[]
Returns: int
The index of the slice.
|
|
||
Full Usage:
ResizeArray.intercalate separator source
Parameters:
'a[]
source : 'a[] seq
Returns: 'a[]
|
|||
Full Usage:
ResizeArray.intersperse element source
Parameters:
'T
source : 'T[]
Returns: 'T[]
|
|||
Full Usage:
ResizeArray.lift2 mapping ra1 ra2
Parameters:
'T -> 'U -> 'c
ra1 : ResizeArray<'T>
ra2 : ResizeArray<'U>
Returns: ResizeArray<'c>
|
|||
Full Usage:
ResizeArray.lift3 mapping ra1 ra2 ra3
Parameters:
'U -> 'V -> 'T -> 'd
-
Mapping function taking three element combination as input.
ra1 : ResizeArray<'T>
-
First ResizeArray.
ra2 : ResizeArray<'U>
-
Second ResizeArray.
ra3 : ResizeArray<'V>
-
Third ResizeArray.
Returns: ResizeArray<'d>
ResizeArray with values returned from mapping function.
|
|
||
Full Usage:
ResizeArray.map mapping source
Parameters:
'T -> 'U
-
A function to transform items from the input ResizeArray.
source : ResizeArray<'T>
-
The input ResizeArray.
Returns: ResizeArray<'U>
The result ResizeArray.
|
|
||
Full Usage:
ResizeArray.map2Shortest f a1 a2
Parameters:
'a -> 'b -> 'c
a1 : ResizeArray<'a>
a2 : ResizeArray<'b>
Returns: ResizeArray<'c>
|
|||
Full Usage:
ResizeArray.map3Shortest f a1 a2 a3
Parameters:
'T1 -> 'T2 -> 'T3 -> 'b
a1 : ResizeArray<'T1>
a2 : ResizeArray<'T2>
a3 : ResizeArray<'T3>
Returns: ResizeArray<'b>
|
|||
Full Usage:
ResizeArray.partitionMap mapper source
Parameters:
'T -> Choice<'T1, 'T2>
source : 'T array
Returns: 'T1[] * 'T2[]
A tuple with both resulting arrays.
|
|
||
Full Usage:
ResizeArray.replace oldValue newValue source
Parameters:
'T[]
newValue : 'T[]
source : 'T[]
Returns: 'T[]
|
|||
Full Usage:
ResizeArray.split separators source
Parameters:
'a[] seq
source : 'a[]
Returns: 'a[] seq
|
|||
Full Usage:
ResizeArray.tryFindLastSliceIndex slice source
Parameters:
'a[]
source : 'a[]
Returns: int option
The index of the slice or None .
|
|||
Full Usage:
ResizeArray.tryFindSliceIndex slice source
Parameters:
'a[]
source : 'a[]
Returns: int option
The index of the slice or None .
|
|||
Full Usage:
ResizeArray.zip3Shortest a1 a2 a3
Parameters:
ResizeArray<'T1>
-
First input ResizeArray.
a2 : ResizeArray<'T2>
-
Second input ResizeArray.
a3 : ResizeArray<'T3>
-
Third input ResizeArray.
Returns: ResizeArray<'T1 * 'T2 * 'T3>
ResizeArray with corresponding pairs of input ResizeArrays.
|
|
||
Full Usage:
ResizeArray.zipShortest a1 a2
Parameters:
ResizeArray<'T1>
-
First input ResizeArray.
a2 : ResizeArray<'T2>
-
Second input ResizeArray.
Returns: ResizeArray<'T1 * 'T2>
ResizeArray with corresponding pairs of input ResizeArrays.
|
|