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.
The name tap
comes from the Ruby method: http://ruby-doc.org/core-2.0.0/Object.html#method-i-tap
which allows you to "tap into" a method call chain, in order to perform operations on intermediate
results within the chain. unsafe
because it enables side effects.
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.
Applies self
to the provided function.
Applies self
to the provided function. The Thrush combinator.
Alias for unsafeTap
.