class Monads::Just(T)
- Monads::Just(T)
- Monads::Maybe(T)
- Reference
- Object
Included Modules
Defined in:
monads/maybe.crConstructors
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #fmap(&block : T -> U) : Just(U) forall U
- #inspect(io)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Instance methods inherited from module Monads::RightBiased(T)
bind(&block : T -> U) : U forall Ubind(lambda : T -> U) : U forall U bind, equal?(rhs : RightBiased) : Bool
equal?(rhs : LeftBiased) : Bool equal?, failure? : Bool failure?, or(monad) or, success? : Bool success?, tee(&block : T -> U) forall U tee, value! : T value!, value_or(element : U) : T forall U
value_or(&block : -> U) : T forall U value_or
Instance methods inherited from class Monads::Maybe(T)
bind(&block : T -> U) forall Ubind(lambda : T -> U) forall U bind, fmap(&block : T -> U) forall U fmap, just? just?, nothing? nothing?, or(monad : Result) or, tee(&block : T -> U) forall U tee, value! value!, value_or(element : U) forall U
value_or(&block : -> U) forall U value_or
Constructor Detail
Instance Method Detail
def ==(other : self) : Bool
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.