Lambda in Kernel is defined as follows:
($define! $lambda ($vau (formals . body) env (wrap (eval (list* $vau formals #ignore body) env))))
So,
(lambda args body)
(wrap ($vau args #ignore body))
Lambda in Kernel is defined as follows:
When you say ($lambda (x) x), a new fexpr (that ignores the environment in which it is called, because lambdas don't need it) is constructed -- ($vau (x) #ignore x) -- and then it is wrapped, so that its operands are evaluated.So,
can be expressed as