Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crz
v1.0.2
CRZ
Applicative
Containers
Err
Nilable
None
Ok
Option
None
Some
Result
Err
Ok
Some
Functor
Monad
Macros
Prelude
Built with Crystal 1.9.2
2023-10-08 08:59:40 UTC
class
CRZ::Containers::Option::None(A)
CRZ::Containers::Option::None(A)
CRZ::Containers::Option(A)
Reference
Object
Defined in:
crz/option.cr
Constructors
.new
Instance Method Summary
#==
(other : Other) forall Other
#clone
: None(A)
#copy_with
: None(A)
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
]