class CRZ::Containers::Option::None(A)

Defined in:

crz/option.cr

Constructors

Instance Method Summary

Instance methods inherited from class CRZ::Containers::Option(A)

bind(&block : A -> Option(B)) : Option(B) forall B bind, flat_map(&block : A -> Option(B)) : Option(B) forall B flat_map, get : A get, get_or_else(default : A) : A get_or_else, has_value : Bool has_value, to_s to_s, unwrap : A unwrap, unwrap_or_else(default : A) : A unwrap_or_else

Class methods inherited from class CRZ::Containers::Option(A)

of(value : T) : Option(T) forall T of

Instance methods inherited from module CRZ::Monad(A)

<<(other : Monad(B)) : Monad(A) forall B <<, >=(block : A -> Monad(B)) : Monad(B) forall B >=, >>(other : Monad(B)) : Monad(B) forall B >>, ap(func : Applicative(A -> B)) : Applicative(B) forall B ap, map(&block : A -> B) : Monad(B) forall B map

Instance methods inherited from module CRZ::Applicative(A)

*(func : Applicative(A -> B)) : Applicative(B) forall B *

Class methods inherited from module CRZ::Applicative(A)

of(value : A) : Applicative(A) forall A of

Instance methods inherited from module CRZ::Functor(A)

replace(other : Functor(B), v : A) : Functor(A) replace

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def ==(other : Other) forall Other #

[View source]
def clone : None(A) #

[View source]
def copy_with : None(A) #

[View source]