IdOps
Value members
Concrete methods
Returns self
if it is non-null, otherwise returns d
.
Returns self
if it is non-null, otherwise returns d
.
Applies self
to the provided function if the predicate is satisfied, otherwise return self.
Applies self
to the provided function if the predicate is satisfied, otherwise return self.
Applies self
to the provided function if the predicate is satisfied, otherwise return self.
Applies self
to the provided function if the predicate is satisfied, otherwise return self.
Repeatedly apply f
, seeded with self
, checking after each iteration whether the predicate p
holds.
Repeatedly apply f
, seeded with self
, checking after each iteration whether the predicate p
holds.
Alternative syntax for the Thrush combinator or a total match
.
Alternative syntax for the Thrush combinator or a total match
.
If the provided partial function is defined for self
run this,
otherwise lift self
into F
with the provided scalaz.Applicative.
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.
Repeatedly apply f
, seeded with self
, checking before each iteration whether the predicate p
holds.
Applies self
to the provided function. The Thrush combinator.
Applies self
to the provided function. The Thrush combinator.
Deprecated methods
Alias for unsafeTap
.
Alias for unsafeTap
.
- Deprecated
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.
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.
- Deprecated