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