Package eu.bandm.tools.util
Class Operators.LiftedFold<T,S>
java.lang.Object
eu.bandm.tools.util.Operators.LiftedFold<T,S>
- All Implemented Interfaces:
Operators.Cons<Collection<T>,S>
- Enclosing class:
- Operators
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
body
-
-
Constructor Details
-
LiftedFold
-
-
Method Details
-
consume
Description copied from interface:Operators.ConsCompute a post-state from an input element and a pre-state. Computation should be stateless and thread-safe, i.e.,f.consume(x, s)for a given fixed function objectf, input elementxand statesshould not vary unless the observable state ofxorsvaries.- Specified by:
consumein interfaceOperators.Cons<T,S> - Parameters:
next- an input element.state- a pre-state.- Returns:
- a post-state.
-
toString
-