MBrace.Flow


Fold

Namespace: MBrace.Flow.Internals.Consumers

Functions and values

Function or valueDescription
fold folder combiner init flow
Signature: folder:('State -> 'T -> 'State) -> combiner:('State -> 'State -> 'State) -> init:(unit -> 'State) -> flow:CloudFlow<'T> -> Cloud<'State>
Type parameters: 'State, 'T

Generic folding consumer

foldBy (...)
Signature: projection:('T -> 'Key) -> folder:('State -> 'T -> 'State) -> combiner:('State -> 'State -> 'State) -> init:(unit -> 'State) -> flow:CloudFlow<'T> -> CloudFlow<'Key * 'State>
Type parameters: 'T, 'Key, 'State

Generic fold by Key implementation

foldBy2 (...)
Signature: projection:('T -> 'Key) -> projection':('T0 -> 'Key) -> folder:('State -> 'T -> 'State) -> folder':('State -> 'T0 -> 'State) -> combiner:('State -> 'State -> 'State) -> init:(unit -> 'State) -> flow:CloudFlow<'T> -> flow':CloudFlow<'T0> -> CloudFlow<'Key * 'State>
Type parameters: 'T, 'Key, 'T0, 'State

Generic fold by key implementation

Fork me on GitHub