summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2017-11-13 18:22:52 -0500
committerOwen Jacobson <owen@grimoire.ca>2017-11-13 18:22:52 -0500
commit2ce0e6ce36c8059ef92a373996cc5788258da477 (patch)
treea9ab13ee2cfa6a24df966dfa8b251ea681486701
parent6f6bd87759f912354a24ef69f96dd35afc980feb (diff)
Expand the first argument of a form, not just the tail
-rw-r--r--actinide/expander.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/actinide/expander.py b/actinide/expander.py
index 46a98ce..54428d7 100644
--- a/actinide/expander.py
+++ b/actinide/expander.py
@@ -30,5 +30,5 @@ def expand(form, symbols):
if len(body) != 1:
body = [list(symbols['begin'], *body)]
args = [formals, *body]
- form = list(symb, *[expand(subform, symbols) for subform in args])
+ form = list(expand(symb), *[expand(subform, symbols) for subform in args])
return form