Class: MPrelude::Maybe::Nothing

Inherits:
MPrelude::Maybe show all
Defined in:
lib/mprelude.rb

Instance Method Summary collapse

Instance Method Details

#bind(&block) ⇒ Maybe::Nothing

Evaluate applicative block

Returns:



47
48
49
# File 'lib/mprelude.rb', line 47

def bind(&block)
  require_block(&block)
end

#fmap(&block) ⇒ Maybe::Nothing

Evaluate functor block

Returns:



40
41
42
# File 'lib/mprelude.rb', line 40

def fmap(&block)
  require_block(&block)
end