diff options
Diffstat (limited to 'neb/std')
| -rw-r--r-- | neb/std/functools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/neb/std/functools.py b/neb/std/functools.py index 83475b9..facc97d 100644 --- a/neb/std/functools.py +++ b/neb/std/functools.py @@ -39,8 +39,8 @@ def interpretApply(symbol, args, env, ns): func = args[0] if not isinstance(func, Symbol): raise InterpretPanic(symbol, "requires a symbol as its first argument", func) - new_lst = List([func] + args[1].args) - return evaluate(new_lst, env, ns) + new_expr = Expr([func] + args[1].args) + return evaluate(new_expr, env, ns) FUNCTOOLS.register("apply", Builtin("apply", interpretApply, [Arg("func", TypeEnum.ANY, lazy=True), Arg("list", TypeEnum.LIST)])) |
