The other functions of the default module stay available after open FSharp.Collections.Immutable.Option. Each
function has the signature of the function with the same name in
Parallel.
| Function or value | Description |
|
|
Full Usage:
Parallel.tryFind predicate array
Parameters:
'T -> bool
-
The function to test the elements, called in parallel.
array : FlatList<'T>
-
The input flat list.
Returns: 'T option
The first element that satisfies the predicate, or None.
|
O(n). The predicate can also run for elements after the first one that satisfies it.
|
Full Usage:
Parallel.tryFindIndex predicate array
Parameters:
'T -> bool
-
The function to test the elements, called in parallel.
array : FlatList<'T>
-
The input flat list.
Returns: int option
The index of the first element that satisfies the predicate, or None.
|
O(n). The predicate can also run for elements after the first one that satisfies it.
|
Full Usage:
Parallel.tryPick chooser array
Parameters:
'T -> 'U option
-
The function that returns a value, or None to go on, called in parallel.
array : FlatList<'T>
-
The input flat list.
Returns: 'U option
The value for the first element that the chooser returns a value for, or None.
|
O(n). The chooser can also run for elements after the first one that it returns a value for.
|