compiler.function_(params, expr)
Return code in the intermediate language to create a function object.
Params
is the list of identifiers that will become the parameters to the function in the generated code.
Expr
is the code that will be the body of the new function.
// dynamically generate and evaluate the function definition: `function f(a, b) a + b`
let f = eval(compiler.function_(['a, 'b], compiler.call('`+`, ['a, 'b])))
f(10, 20)
// 30