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?

3 comments

0

You cannot "edit" functions on the go. I also see no need for you to use environments here.

0

If you wish to understand setfenv (Set Function Environment), here is a short explanation from Incapaz: