fold

Start with current value zero and then apply the current and next value to the given function, when upstream complete the current value is emitted downstream.

Simple operators

Signature

def fold[T](zero: T)(f: (T, Out) ⇒ T): Repr[T]

Description

Start with current value zero and then apply the current and next value to the given function, when upstream complete the current value is emitted downstream.

emits when upstream completes

backpressures when downstream backpressures

completes when upstream completes

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.