Element - λ
- Lambda
Characters:
λ
Description
Create a lambda function (pushes an anomymous function to the stack). λarity|code;
defines a lambda function with the given arity (if unspecified, the arity is 1). When a lambda
is applied with †
(Function Call), it pops that many values from the stack and places them on its
own stack in reverse order. Then, the function body is run with that sub-stack. Finally, if the
function's stack is non-empty, its top value is pushed back onto the stack. Otherwise, the
original top-of-stack is pushed back.