You could use a functor, for example: In Julia, how to create a function that saves its own internal state? - #6 by lmiq
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Functionality like the SAVE statement in Fortran? | 30 | 691 | March 25, 2025 | |
| Suggestion: Explicit anonymous functors? | 23 | 762 | February 4, 2024 | |
| Unrecommended style of programming in Julia for type stability? | 17 | 2275 | December 12, 2017 | |
| Function definition inside let-block impacting performance? | 42 | 1678 | February 14, 2024 | |
| Can someone explain closures to me | 13 | 3340 | November 2, 2023 |