returns a new Res
containing the value if the value
exists and applying the predicate to the value returns
true
.
returns a new Res
containing the value if the value
exists and applying the predicate to the value returns
true
. Otherwise an EmptyRes
is returned
Returns a new Res
containing result of applying f
to
value contained in this Res
, if the value exists
Returns a new Res
containing result of applying f
to
value contained in this Res
, if the value exists
- type of value contained by new Res
- function applied if Res
is nonempty
Turns a Res[Res[A]]
into a Res[A]
returns the value contained in the Res
if it is nonempty
or the default otherwise
returns the value contained in the Res
if it is nonempty
or the default otherwise
- value to return is Res
is empty
Returns a new Res
containing result of apply f to the Res
's value, if it exists
Returns a new Res
containing result of apply f to the Res
's value, if it exists
- type of value contained by new Res
- function applied if Res
is nonempty
Returns new Res
containing value of this res if it exists,
otherwise the other Res
is returned
Returns new Res
containing value of this res if it exists,
otherwise the other Res
is returned
- the Res
to return if the other is empty
Returns Some
containing the value, if it exists.
Returns Some
containing the value, if it exists.
Otherwise, None
is returned