Explorar el Código

Evaluate lists that are not applications

master
Dylan Baker hace 5 años
padre
commit
987328470b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      lib/chervil/ast/list.rb

+ 2
- 0
lib/chervil/ast/list.rb Ver fichero

@@ -23,6 +23,8 @@ module Chervil::AST
23 23
           else
24 24
             function.call(@elements[1..-1].map { |arg| arg.evaluate(env) }, env)
25 25
           end
26
+        else
27
+          @elements.map { |el| el.evaluate(env) }
26 28
         end
27 29
       end
28 30
     end

Loading…
Cancelar
Guardar