Say if I wanted to move a function from a to b like a = b or if i wanted to edit it on the go. How would I do that?
COMMUNITY QUESTION
How do I use setfenv() and how do I know what tables I need to put in it?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
You cannot "edit" functions on the go. I also see no need for you to use environments here.
If you wish to understand setfenv (Set Function Environment), here is a short explanation from Incapaz:
https://scriptinghelpers.org/questions/91489/how-do-getfenv-and-setfenv-functions-work-and-what-is-their-usages