get_defined_vars()
function get_defined_vars(): array
Returns variables visible in the current scope.
Parameters: none.
Returns: array
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/get_defined_vars.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how get_defined_vars is implemented in the compiler, see the internals page.