Package eu.bandm.tools.ops
Class Statefuls
java.lang.Object
eu.bandm.tools.ops.Statefuls
Library of constants and combinators for classes implementing
Stateful
.-
Method Summary
Modifier and TypeMethodDescriptionjump
(S state) produceConsume
(BiFunction<? super S, ? super A, ? extends B> prod, Consumer<? super B, A> cons) sequence
(Function<Stateful<S, A>, ? extends Stateful<S, B>> first, Function<Stateful<S, A>, ? extends Stateful<S, C>> second, BiFunction<? super B, ? super C, ? extends D> combine) static <S,
A> Stateful<S, A> stateful
(S state, A value) yield
(A value)
-
Method Details
-
stateful
-
yield
-
jump
-
transit
-
map
-
sequence
-
produceConsume
public static <S,A, Function<Stateful<S,B> A>, produceConsumeStateful<S, A>> (BiFunction<? super S, ? super A, ? extends B> prod, Consumer<? super B, A> cons)
-