Ver código fonte

Evaluate lists that are not applications

master
Dylan Baker 5 anos atrás
pai
commit
987328470b
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      lib/chervil/ast/list.rb

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

@@ -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

Carregando…
Cancelar
Salvar