Module: TAlgebra::Monad::SingleValued::Static
- Defined in:
- lib/t_algebra/monad/single_valued.rb
Instance Method Summary collapse
Instance Method Details
#chain(&block) ⇒ Object
7 8 9 10 11 |
# File 'lib/t_algebra/monad/single_valued.rb', line 7 def chain(&block) receiver = augmented_receiver(block) fiber = Fiber.new { receiver.instance_exec(&block) } chain_recursive(fiber, []) end |