Sorry, a newbie question but I couldn’t locate an answer. If I want to use a user-defined global variable in a user-defined function, should I pass it as a parameter to the function, or just straight out use it in the function? Thanks.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| View user defined function definitions? | 4 | 3632 | January 17, 2020 | |
| Passing a pure fucntion | 2 | 4908 | February 3, 2022 | |
| Avoiding global vars in usage of multiple packages and data | 1 | 9723 | September 4, 2013 | |
| Are parameters in functions handled better with Set (=) or Patterns (tau_) | 2 | 5318 | April 9, 2015 | |
| How to write a time efficient user-defined function with local variables? | 3 | 10949 | August 15, 2019 |