compileFunction

external fun compileFunction(    code: String,     params: <Error class: unknown class><String> = definedExternally,     options: CompileFunctionOptions = definedExternally): CompileFunctionResult(source)

Compiles the given code into the provided context (if no context is supplied, the current context is used), and returns it wrapped inside a function with the given params.

Since

v10.10.0

Parameters

code

The body of the function to compile.

params

An array of strings containing all parameters for the function.