Method: Fr::Reader.eval
- Defined in:
- lib/fr/monad/reader.rb
.eval(computation, state) ⇒ Object
15 16 17 |
# File 'lib/fr/monad/reader.rb', line 15 def eval(computation, state) computation.call(state)[:value] end |
15 16 17 |
# File 'lib/fr/monad/reader.rb', line 15 def eval(computation, state) computation.call(state)[:value] end |