Parallel Module
Parallel operations on ResizeArray using Threading.Tasks.Parallel.For The API is aligned with from FSharp.Core.Array.Parallel module
Functions and values
Function or value | Description |
Full Usage:
choose chooser resizeArray
Parameters:
'T -> 'U option
-
The function to generate options from the elements.
resizeArray : ResizeArray<'T>
-
The input ResizeArray.
Returns: ResizeArray<'U>
The ResizeArray of results.
|
Apply the given function to each element of the ResizeArray. Return the ResizeArray comprised of the results "x" for each element where the function returns Some(x). Performs the operation in parallel using Parallel.For. The order in which the given function is applied to elements of the input ResizeArray is not specified.
|
Full Usage:
collect mapping resizeArray
Parameters:
'T -> ResizeArray<'U>
-
resizeArray : ResizeArray<'T>
-
The input ResizeArray.
Returns: ResizeArray<'U>
'U[]
|
For each element of the ResizeArray, apply the given function. Concatenate all the results and return the combined ResizeArray. Performs the operation in parallel using Parallel.For. The order in which the given function is applied to elements of the input ResizeArray is not specified.
|
Full Usage:
init count initializer
Parameters:
int
-
initializer : int -> 'T
-
Returns: ResizeArray<'T>
The ResizeArray of results.
|
Create a ResizeArray given the dimension and a generator function to compute the elements. Performs the operation in parallel using Parallel.For. The order in which the given function is applied to indices is not specified.
|
Full Usage:
iter action resizeArray
Parameters:
'T -> unit
-
resizeArray : ResizeArray<'T>
-
The input ResizeArray.
|
Apply the given function to each element of the ResizeArray. Performs the operation in parallel using Parallel.For. The order in which the given function is applied to elements of the input ResizeArray is not specified.
|
Full Usage:
iteri action resizeArray
Parameters:
int -> 'T -> unit
-
resizeArray : ResizeArray<'T>
-
The input ResizeArray.
|
Apply the given function to each element of the ResizeArray. The integer passed to the function indicates the index of element. Performs the operation in parallel using Parallel.For. The order in which the given function is applied to elements of the input ResizeArray is not specified.
|
Full Usage:
map mapping resizeArray
Parameters:
'T -> 'U
-
resizeArray : ResizeArray<'T>
-
The input ResizeArray.
Returns: ResizeArray<'U>
The ResizeArray of results.
|
Build a new ResizeArray whose elements are the results of applying the given function to each of the elements of the ResizeArray. Performs the operation in parallel using Parallel.For. The order in which the given function is applied to elements of the input ResizeArray is not specified.
|
Full Usage:
mapi mapping resizeArray
Parameters:
int -> 'T -> 'U
-
resizeArray : ResizeArray<'T>
-
The input ResizeArray.
Returns: ResizeArray<'U>
The ResizeArray of results.
|
Build a new ResizeArray whose elements are the results of applying the given function to each of the elements of the ResizeArray. The integer index passed to the function indicates the index of element being transformed. Performs the operation in parallel using Parallel.For. The order in which the given function is applied to elements of the input ResizeArray is not specified.
|
Full Usage:
partition predicate resizeArray
Parameters:
'T -> bool
-
The function to test the input elements.
resizeArray : ResizeArray<'T>
-
The input ResizeArray.
Returns: ResizeArray<'T> * ResizeArray<'T>
The two ResizeArrays of results.
|
Split the collection into two collections, containing the
elements for which the given predicate returns
|