Writing a static function

You could use a functor, for example: In Julia, how to create a function that saves its own internal state? - #6 by lmiq

3 Likes