compiler.call


compiler.call(fn_name, args)
      

Return the intermediate language code required to call the function named fn_name with arguments in the list args.

Examples:


// 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
      

Also see:

compiler


Core Module Index | Contents