My use case is calling arbitrary functions from source code using the Polyglot API. The docs describe an example executing anonymous functions. Is it possible to evaluate a string containing function definitions and having these functions be named members of the resulting value?
My current approach is pasting a anonymous function using the name function at the bottom like (...args) => %functionName(...args).
My use case is calling arbitrary functions from source code using the Polyglot API. The docs describe an example executing anonymous functions. Is it possible to evaluate a string containing function definitions and having these functions be named members of the resulting value?
My current approach is pasting a anonymous function using the name function at the bottom like
(...args) => %functionName(...args)
.