T
- the returned evaluation type.public class FoldRight<T> extends Object implements Function<Generator<T>,T>, BinaryFunction<Generator<T>,T,T>
Generator
.
Uses the seed object (if supplied) as the initial right-side argument to the BinaryFunction
,
then uses the result of that evaluation as the next right-side argument, until the Generator
's
elements have been expended.Constructor and Description |
---|
FoldRight(BinaryFunction<? super T,? super T,? extends T> function)
Create a new FoldRight.
|
public FoldRight(BinaryFunction<? super T,? super T,? extends T> function)
function
- BinaryFunction
to apply to each (seed, next)Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.