mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Ensure list of formals before performing list ops
This commit is contained in:
parent
1d36fec61e
commit
7794f3edce
1 changed files with 1 additions and 0 deletions
|
@ -1217,6 +1217,7 @@
|
|||
(cond
|
||||
;; TODO: what if fnc has no cont? do we need to handle differently?
|
||||
((and (ast:lambda? fnc)
|
||||
(list? formals)
|
||||
(= (length args) (length formals)))
|
||||
;(trace:error `(JAE DEBUG beta expand ,exp))
|
||||
(beta-expansion exp fnc) ; exp
|
||||
|
|
Loading…
Add table
Reference in a new issue