The functions of Parallel that take or return tuples, with reference tuples instead of struct tuples.
The other functions of the default module stay available after open FSharp.Collections.Immutable.Tuple. Each
function has the signature of the function with the same name in
Parallel.
| Function or value | Description | ||
Full Usage:
Parallel.groupBy projection array
Parameters:
'T -> 'Key
-
The function that returns the key of an element, called in parallel.
array : FlatList<'T>
-
The input flat list.
Returns: FlatList<'Key * FlatList<'T>>
The keys with their elements. The order of the keys and the order of the elements of a key are not specified.
|
O(n). The keys compare in F# structural equality, except that keys of type Double and Single compare as in Parallel.GroupBy, which puts all NaN keys in one group.
|
||
Full Usage:
Parallel.partition predicate array
Parameters:
'T -> bool
-
The function to test the elements, called in parallel.
array : FlatList<'T>
-
The input flat list.
Returns: FlatList<'T> * FlatList<'T>
The elements that satisfy the predicate and the other ones, both in their order.
|
|||
Full Usage:
Parallel.partitionWith partitioner array
Parameters:
'T -> Choice<'T1, 'T2>
-
The function that returns Choice1Of2 or Choice2Of2 for an element, called in parallel.
array : FlatList<'T>
-
The input flat list.
Returns: FlatList<'T1> * FlatList<'T2>
The values of the first choices and of the second choices, both in the order of the elements.
|
|||
|
O(n).
|