Table of Contents

Class Accumulate

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that computes the cumulative sum of an observable sequence and returns each intermediate result.

Marble diagram

The Accumulate operator returns the current value of the cumulative sum each time the source sequence emits a notification. The result sequence terminates successfully when the source sequence terminates successfully.

Example

Use Accumulate to continuously update a value by adding up the changes over time.

Accumulate Example

Alternative

Use Sum instead to yield a single accumulated value at the end of a sequence.

public class Accumulate : SingleArgumentExpressionBuilder, IExpressionBuilder
Inheritance
Accumulate
Implements
Inherited Members
Extension Methods

Methods

Build(IEnumerable<Expression>)

Constructs an Expression node from a collection of input arguments. The result can be chained with other builders in a workflow.