From 2ce0e6ce36c8059ef92a373996cc5788258da477 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Mon, 13 Nov 2017 18:22:52 -0500 Subject: Expand the first argument of a form, not just the tail --- actinide/expander.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3