Class Accumulate
Represents an operator that computes the cumulative sum of an observable sequence and returns each intermediate result.
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.
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.