4.17 Eval
TBoS p.124, SD
The eval function receives an expression e and returns the normal form e* of the expression eb, where eb results from e by replacing all square brackets by round ones.
(0-) (eval [+ 1 2])
3
(1-) (eval [define car [cons X Y] -> X])
(fn car)
(2-) (car [1 2])
1 |
|