Linking this thread on all the ways to define functions in Julia and related article, which may help answering the OP title question.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Function types unexpectedly equal | 5 | 348 | February 15, 2023 | |
| Difference between vector of functions typed explicitly or via list comprehension | 4 | 245 | May 4, 2025 | |
| Vector of functions as kwarg | 5 | 277 | September 7, 2023 | |
| Collections of Functions | 11 | 943 | December 13, 2016 | |
| Initiate an array of functions | 4 | 415 | May 28, 2022 |