class CRZ::Containers::Result::Ok(T, E)

Defined in:

crz/result.cr

Constructors

Instance Method Summary

Instance methods inherited from class CRZ::Containers::Result(T, E)

bind(&block : T -> Result(U, E)) : Result(U, E) forall U bind, has_value : Bool has_value, map(&block : T -> U) : Result(U, E) forall U map, unwrap : T unwrap

Class methods inherited from class CRZ::Containers::Result(T, E)

of(value : T) : Result(T, E) of

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

<<(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(T)

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

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

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

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

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

Constructor Detail

def self.new(value0 : T) #

[View source]

Instance Method Detail

def ==(other : Other) forall Other #

[View source]
def clone : Ok(T, E) #

[View source]
def copy_with(value0 = @value0) : Ok(T, E) #

[View source]
def value0 : T #

def value0=(value0 : T) #