Browse Source

Evaluate lists that are not applications

master
Dylan Baker 5 years ago
parent
commit
987328470b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      lib/chervil/ast/list.rb

+ 2
- 0
lib/chervil/ast/list.rb View 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…
Cancel
Save