diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2017-11-13 18:22:52 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2017-11-13 18:22:52 -0500 |
| commit | 2ce0e6ce36c8059ef92a373996cc5788258da477 (patch) | |
| tree | a9ab13ee2cfa6a24df966dfa8b251ea681486701 | |
| parent | 6f6bd87759f912354a24ef69f96dd35afc980feb (diff) | |
Expand the first argument of a form, not just the tail
| -rw-r--r-- | actinide/expander.py | 2 |
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 |
