Class: MPrelude::Maybe::Just
- Inherits:
-
MPrelude::Maybe
- Object
- MPrelude::Maybe
- MPrelude::Maybe::Just
- Defined in:
- lib/mprelude.rb
Overview
Nothing
Instance Method Summary collapse
-
#bind {|value| ... } ⇒ Maybe
Evalute applicative block.
-
#fmap ⇒ Maybe::Just<Object>
Evalute functor block.
Instance Method Details
#bind {|value| ... } ⇒ Maybe
Evalute applicative block
65 66 67 |
# File 'lib/mprelude.rb', line 65 def bind yield(value) end |
#fmap ⇒ Maybe::Just<Object>
Evalute functor block
58 59 60 |
# File 'lib/mprelude.rb', line 58 def fmap Just.new(yield(value)) end |