struct Monads::Left(E)
Defined in:
monads/either.crConstructors
Instance Method Summary
- #<=>(other : Left)
- #<=>(other : Right)
- #<=>(other : Either)
- #<=>(other : LeftException)
- #bind(lambda : _ -> _) : Left(E)
- #fmap(lambda : _ -> _) : Left(E)
- #map_or(default : U, lambda : _ -> _) forall U
- #or(monad : Either)
- #or(lambda : E -> _)
- #value_or(lambda : E -> _)
- #value_or(element : U) forall U
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, right? right?, to_s to_s, value! : E | T value!, value_or(element : U) forall U value_or