A
- the IO
value typepublic final class Until<A> extends Object implements Fn2<Fn1<? super A,? extends Boolean>,IO<A>,IO<A>>
predicate function
for a value of some type A
and an IO
that yields a value
of type A
, produce an IO
that repeatedly executes the original IO
until the predicate
returns true when applied to the yielded value.Modifier and Type | Method and Description |
---|---|
IO<A> |
checkedApply(Fn1<? super A,? extends Boolean> pred,
IO<A> io) |
static <A> Until<A> |
until() |
static <A> Fn1<IO<A>,IO<A>> |
until(Fn1<? super A,? extends Boolean> pred) |
static <A> IO<A> |
until(Fn1<? super A,? extends Boolean> pred,
IO<A> io) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, flip, fn2, fromBiFunction, toBiFunction, uncurry, widen