The functions of FlatList that take or return tuples, with reference tuples instead of struct tuples.
After open FSharp.Collections.Immutable.Tuple, these functions shadow the default ones, and the other functions
of the default module stay available (ADR 0001, D3). Optional values stay
voption; open the namespace
Immutable.Option after this one for the shapes of
Array.
| Modules | Description |
|
The functions of Parallel that take or return tuples, with reference tuples instead of struct tuples. |
| Function or value | Description | ||||
|
|||||
|
|||||
Full Usage:
FlatList.groupBy projection array
Parameters:
'T -> 'Key
-
The function that returns the key of an element.
array : FlatList<'T>
-
The input flat list.
Returns: FlatList<'Key * FlatList<'T>>
The keys, in the order of their first occurrence, with their elements in their order.
|
O(n). The keys compare in F# structural equality.
|
||||
|
|||||
Full Usage:
FlatList.mapFold mapping state array
Parameters:
'State -> 'T -> 'Result * 'State
-
The function that returns the result for an element and the next state.
state : 'State
-
The initial state.
array : FlatList<'T>
-
The input flat list.
Returns: FlatList<'Result> * 'State
The results and the final state.
|
|||||
Full Usage:
FlatList.mapFoldBack mapping array state
Parameters:
'T -> 'State -> 'Result * 'State
-
The function that returns the result for an element and the next state.
array : FlatList<'T>
-
The input flat list.
state : 'State
-
The initial state.
Returns: FlatList<'Result> * 'State
The results, in the order of the elements, and the final state.
|
|||||
|
|||||
|
|||||
Full Usage:
FlatList.partitionWith partitioner array
Parameters:
'T -> Choice<'T1, 'T2>
-
The function that returns Choice1Of2 or Choice2Of2 for an element.
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). The parts are copies, unless they are empty or the whole flat list.
|
||||
Full Usage:
FlatList.unfold generator state
Parameters:
'State -> ('T * 'State) voption
-
The function that returns the next element and state, or ValueNone to stop.
state : 'State
-
The initial state.
Returns: FlatList<'T>
The generated flat list.
|
O(n).
|
||||
|
|||||
|
|||||
|
O(n).
|
||||
|
O(n).
|