Package eu.bandm.tools.ops
Class InitProducers
java.lang.Object
eu.bandm.tools.ops.InitProducers
Library of constants and combinators for classes implementing
InitProducer
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <R,
S> Iterable <R> asIterable
(InitProducer<? extends R, S> p) static <R,
S> Iterator <R> asIterator
(InitProducer<? extends R, S> p) static InitProducer
<Integer, Integer> interval
(int start, int end) static <R,
S extends R>
InitProducer<R, S> static <A> Iterable
<A> loopAsIterable
(A init, Predicate<? super A> cond, Function<? super A, ? extends A> iter)
-
Method Details
-
asIterator
-
asIterable
-
loop
public static <R,S extends R> InitProducer<R,S> loop(S init, Predicate<? super S> cond, Function<? super S, ? extends S> iter) -
loopAsIterable
-
interval
-