public class FoldRight extends Fold
ValueExpression implementation of the FoldRight operation.
FoldRight differs from FoldLeft in that the reduce operation is
applied from right to left (i.e., starting at the bottom).
FoldLeft| Constructor and Description |
|---|
FoldRight(ValueExpression values,
Reducer reducer,
ValueExpression initial) |
| Modifier and Type | Method and Description |
|---|---|
protected ImmutableList<OptionalValue> |
prepareValues(ImmutableList<OptionalValue> values) |
protected ValueExpression |
reduce(Reducer reducer,
Value head,
Value tail) |
public FoldRight(ValueExpression values, Reducer reducer, ValueExpression initial)
protected ImmutableList<OptionalValue> prepareValues(ImmutableList<OptionalValue> values)
prepareValues in class FoldCopyright © 2017. All rights reserved.