aol/cyclops

Add restartUntil operator to Eval

johnmcclean opened this issue · 1 comments

Eval will restart the execution chain until the predicate holds

Eval<T> restartUntil(Predicate<? super T> p)

E.g.

int i= 0;
Eval.always(()->++i)
    .restartUntil(n->n>500000)
    .get()

Part of #986

Released in 10.1.1