Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
monads
v1.0.0
Monads
Either
Functor
Just
Left
Leftable
LeftException
List
Maybe
Monad
Nothing
Right
Task
Try
UnwrapError
Built with Crystal 1.9.2
2023-10-08 09:00:02 UTC
struct
Monads::Task(T)
Monads::Task(T)
Struct
Value
Object
Defined in:
monads/task.cr
Constructors
.new
(proc)
Instance Method Summary
#receive
: Try(T)
#to_either
#to_maybe
Constructor Detail
def self.
new
(proc)
#
[
View source
]
Instance Method Detail
def
receive
:
Try
(T)
#
[
View source
]
def
to_either
#
[
View source
]
def
to_maybe
#
[
View source
]