Interface Reduction.OngoingDefinitionWithInitial

Enclosing class:
Reduction

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

    • withInitialValueOf

      @NotNull @Contract(pure=true) @NotNull FunctionInvocation withInitialValueOf(Expression initialValue)
      Parameters:
      initialValue - An expression that runs once to give a starting value to the accumulator.
      Returns:
      An ongoing definition