Returns the value of this Bind
, or the default
value for a Trap
.
Returns true
if the value of this Bind
satisfies the predicate,
otherwise returns false
.
Returns this Bind
if its value satisfies the predicate,
returns the unit Trap
if its value does not satisfy the predicate,
otherwise returns this Trap
.
Returns the binding of a function applied to the value of this Bind
,
otherwise returns this Trap
.
Apllies a function to the value of this Bind
, or returns the zero
value for a Trap
; equivalent to map f bindOrElse z
.
Applies a function to the value of this Bind
, otherwise does nothing.
Selects fused combinators that trap non-fatal exceptions.
Selects fused combinators that trap exceptions with the given handler.
Synonym for bindOrElse
.
Binds the result of a function applied to the value of this Bind
,
otherwise returns this Trap
.
Returns this Bind
, or the other
binding for a Trap
.
Returns the value of this Bind
, or null
for a Trap
.
Binds the result of a function applied to the value of this Trap
,
if defined, otherwise returns this.
Returns the binding of a function applied to the value of this Trap
,
if defined, otherwise returns this.
Returns this Bind
if its value satisfies the predicate,
returns the unit Trap
if its value does not satisfy the predicate,
otherwise returns this Trap
; equivalent to filter
.