That is kinda cool, but it does look like a lot of work to bind multiple functions safely into the same environment in any kind of runtime way.
Absolutely doable though.
Absolutely doable though.
env['f'] = myfunc
and the function will be available as f within the environment.