class Monads::Nothing(T)

Included Modules

Defined in:

monads/maybe.cr

Instance Method Summary

Instance methods inherited from module Monads::LeftBiased(Nil)

bind(&block : T -> U) forall U
bind(lambda : T -> U) forall U
bind
, equal?(rhs : RightBiased) : Bool
equal?(rhs : LeftBiased) : Bool
equal?
, failure? failure?, fmap(&block : T -> U) forall U fmap, or(monad) or, success? success?, tee(&block : T -> U) forall U tee, value! : T value!, value_or(element : U) : U forall U
value_or(&block : -> U) : U forall U
value_or

Instance methods inherited from class Monads::Maybe(T)

bind(&block : T -> U) forall U
bind(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

Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def fmap(&block : T -> U) : Nothing(U) forall U #

[View source]
def inspect(io) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]