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
-
Constructor Summary
-
Method Summary
-
Field Details
-
body
-
-
Constructor Details
-
LiftedFold
-
-
Method Details
-
consume
Description copied from interface:Operators.Cons
Compute 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 elementx
and states
should not vary unless the observable state ofx
ors
varies.- Specified by:
consume
in interfaceOperators.Cons<T,
S> - Parameters:
next
- an input element.state
- a pre-state.- Returns:
- a post-state.
-
toString
-