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 | 560 | March 25, 2025 | |
Suggestion: Explicit anonymous functors? | 23 | 682 | February 4, 2024 | |
Unrecommended style of programming in Julia for type stability? | 17 | 2172 | December 12, 2017 | |
Function definition inside let-block impacting performance? | 42 | 1493 | February 14, 2024 | |
Can someone explain closures to me | 13 | 3020 | November 2, 2023 |