Interface Reduction.OngoingDefinitionWithInitial

Enclosing class:
Reduction

public static interface Reduction.OngoingDefinitionWithInitial
Step 4b: Define the initial value.
  • Method Details

    • withInitialValueOf

      FunctionInvocation withInitialValueOf(Expression initialValue)
      Return an ongoing definition.
      Parameters:
      initialValue - an expression that runs once to give a starting value to the accumulator.
      Returns:
      an ongoing definition