Module: Control::Monad
Instance Method Summary collapse
Methods included from Helper
Methods included from Functor
Instance Method Details
#>>(k) ⇒ Object
20 21 22 |
# File 'lib/control/monad.rb', line 20 def >> k self.flat_map { |_| k } end |
#flat_map ⇒ Object
14 15 16 |
# File 'lib/control/monad.rb', line 14 def flat_map raise 'flat_map No defined' end |