struct Monads::Left(E)
Included Modules
Defined in:
monads/either.crConstructors
Instance Method Summary
- #<=>(other : Left)
- #<=>(other : Right)
- #<=>(other : Either)
- #<=>(other : LeftException)
- #bind(lambda : _ -> _) : Left(E)
- #fmap(lambda : _ -> U) : Left(E) forall U
- #map_or(default : U, lambda : _ -> _) forall U
- #map_or(default : U, &block : E -> U) forall U
- #or(monad : Either)
- #or(lambda : E -> _)
- #value_or(lambda : E -> _)
- #value_or(element : U) forall U
Instance methods inherited from module Monads::Leftable(E)
bind(lambda : _ -> _) : Leftable(E)
bind,
fmap(lambda : _ -> _) : Leftable(E)
fmap,
map_or(default : U, lambda : _ -> _) forall U
map_or,
or(monad : Either)or(lambda : E -> _) or, value_or(lambda : E -> _)
value_or(element : U) forall U value_or
Instance methods inherited from struct Monads::Either(E, Nil)
<=>(other : Right)<=>(other : Left) <=>, inspect(io) inspect, left? left?, map_or(default : U, lambda : T -> U) forall U map_or, or(monad : Either)
or(lambda : E -> U) forall U
or(&block : E -> U) forall U or, right? right?, to_s to_s, value! : E | T value!, value_or(element : U) forall U
value_or(lambda : E -> U) forall U
value_or(&block : E -> U) forall U value_or
Constructor methods inherited from struct Monads::Either(E, Nil)
new
new
Class methods inherited from struct Monads::Either(E, Nil)
return(value : T) : Right(T)
return
Instance methods inherited from struct Monads::Monad(Nil)
>>(other : Monad(U)) forall U
>>,
|(other : _ -> Monad(U)) forall U
|,
bind(lambda : T -> Monad(U)) forall Ubind(&block : T -> Monad(U)) forall U bind
Constructor methods inherited from struct Monads::Monad(Nil)
new
new,
return(v : T) : self
return
Instance methods inherited from struct Monads::Functor(Nil)
fmap(lambda : T -> U)fmap(&block : T -> U) forall U fmap, initialize initialize