abstract struct Monads::Monad(T)

Direct Known Subclasses

Defined in:

monads/monad.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Monads::Functor(T)

fmap(lambda : T -> U)
fmap(&block : T -> U) forall U
fmap
, initialize initialize

Constructor methods inherited from struct Monads::Functor(T)

new new

Constructor Detail

def self.new #

[View source]
def self.return(v : T) : self #

[View source]

Instance Method Detail

def >>(other : Monad(U)) forall U #

[View source]
def |(other : _ -> Monad(U)) forall U #

[View source]
abstract def bind(lambda : T -> Monad(U)) forall U #

[View source]
def bind(&block : T -> Monad(U)) forall U #

[View source]