Class: Exp
Constant Summary collapse
- REP =
'^'
Instance Method Summary collapse
Methods inherited from Op
#apply_monad_deep, #integer_args, #numeric_literal?, #to_numeric
Instance Method Details
#run(ary, interpreter) ⇒ Object
81 82 83 |
# File 'lib/jop.rb', line 81 def run ary, interpreter apply_monad_deep(ary) {|n| Math::exp(n) } end |