Alias for unsafeTap
.
Returns self
if it is non-null, otherwise returns d
.
Repeatedly apply f
, seeded with self
, checking after each iteration whether the predicate p
holds.
the result of pf(value) if defined, otherwise the the Zero element of type B.
Applies self
to the provide function for its side effect, and returns self
.
Applies self
to the provide function for its side effect, and returns self
. The Kestrel combinator.
Mostly for use with dodgy libraries that give you values that need additional initialization or
mutation before they're valid to use.
If the provided partial function is defined for self
run this,
otherwise lift self
into F
with the provided scalaz.Applicative.
Repeatedly apply f
, seeded with self
, checking before each iteration whether the predicate p
holds.
Applies self
to the provided function.
Applies self
to the provided function. The Thrush combinator.