Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment.
()
| 664 | |
| 665 | // Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment. |
| 666 | func (e *Env) Functions() map[string]*decls.FunctionDecl { |
| 667 | return maps.Clone(e.functions) |
| 668 | } |
| 669 | |
| 670 | // Variables returns a shallow copy of the variables associated with the environment. |
| 671 | func (e *Env) Variables() []*decls.VariableDecl { |