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