class CRZ::Containers::Nilable(A)

Included Modules

Defined in:

crz/nilable.cr

Constructors

Class Method Summary

Instance Method Summary

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(value : A | Nil = nil) #

[View source]

Class Method Detail

def self.of(value : A) forall A #

[View source]

Instance Method Detail

def bind(&block : A -> Nilable(B)) : Nilable(B) forall B #

[View source]
def value #

[View source]
def value=(value : A | Nil) #

[View source]