Sfoglia il codice sorgente

Evaluate lists that are not applications

master
Dylan Baker 5 anni fa
parent
commit
987328470b
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      lib/chervil/ast/list.rb

+ 2
- 0
lib/chervil/ast/list.rb Vedi File

@@ -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…
Annulla
Salva