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 | 287 | February 15, 2023 | |
| Difference between vector of functions typed explicitly or via list comprehension | 4 | 169 | May 4, 2025 | |
| Vector of functions as kwarg | 5 | 222 | September 7, 2023 | |
| Collections of Functions | 11 | 811 | December 13, 2016 | |
| Initiate an array of functions | 4 | 351 | May 28, 2022 |