org.apache.tapestry5.func

## Interface Reducer<A,T>

-     public interface Reducer<A,T>

  A reducer takes an accumulator value and a single value from a collection and computes a new accumulator value. type of accumulator type of collection value
  Since:
    5.2.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `A` | `reduce(A accumulator, T element)` Run a computation using the current value of the accumulator and an element (from a Flow), and return the new accumulator.

- - ### Method Detail

    - #### reduce

          A reduce(A accumulator,
                 T element)

      Run a computation using the current value of the accumulator and an element (from a Flow), and return the new accumulator.

${project.version} - Copyright © 2003-2014 The Apache Software Foundation.