Class Until<A>
- java.lang.Object
-
- com.jnape.palatable.lambda.functions.builtin.fn2.Until<A>
-
- Type Parameters:
A- theIOvalue type
- All Implemented Interfaces:
Fn1<Fn1<? super A,? extends java.lang.Boolean>,Fn1<IO<A>,IO<A>>>,Fn2<Fn1<? super A,? extends java.lang.Boolean>,IO<A>,IO<A>>,Applicative<Fn1<IO<A>,IO<A>>,Fn1<Fn1<? super A,? extends java.lang.Boolean>,?>>,Cartesian<Fn1<? super A,? extends java.lang.Boolean>,Fn1<IO<A>,IO<A>>,Fn1<?,?>>,Cocartesian<Fn1<? super A,? extends java.lang.Boolean>,Fn1<IO<A>,IO<A>>,Fn1<?,?>>,Contravariant<Fn1<? super A,? extends java.lang.Boolean>,Profunctor<?,Fn1<IO<A>,IO<A>>,Fn1<?,?>>>,Functor<Fn1<IO<A>,IO<A>>,Fn1<Fn1<? super A,? extends java.lang.Boolean>,?>>,Profunctor<Fn1<? super A,? extends java.lang.Boolean>,Fn1<IO<A>,IO<A>>,Fn1<?,?>>,Monad<Fn1<IO<A>,IO<A>>,Fn1<Fn1<? super A,? extends java.lang.Boolean>,?>>,MonadReader<Fn1<? super A,? extends java.lang.Boolean>,Fn1<IO<A>,IO<A>>,Fn1<Fn1<? super A,? extends java.lang.Boolean>,?>>,MonadRec<Fn1<IO<A>,IO<A>>,Fn1<Fn1<? super A,? extends java.lang.Boolean>,?>>,MonadWriter<Fn1<? super A,? extends java.lang.Boolean>,Fn1<IO<A>,IO<A>>,Fn1<Fn1<? super A,? extends java.lang.Boolean>,?>>
public final class Until<A> extends java.lang.Object implements Fn2<Fn1<? super A,? extends java.lang.Boolean>,IO<A>,IO<A>>
Given apredicate functionfor a value of some typeAand anIOthat yields a value of typeA, produce anIOthat repeatedly executes the originalIOuntil the predicate returns true when applied to the yielded value.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUntil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IO<A>checkedApply(Fn1<? super A,? extends java.lang.Boolean> pred, IO<A> io)static <A> Until<A>until()static <A> Fn1<IO<A>,IO<A>>until(Fn1<? super A,? extends java.lang.Boolean> pred)static <A> IO<A>until(Fn1<? super A,? extends java.lang.Boolean> pred, IO<A> io)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zip
-
-