I need to construct something which is a bit expensive. So I want to construct it only once and have it stored for further use. In Matlab, this is done by 'persistent'. Is there a similar thing in Julia? I searched the previous threads and didn't see any relevant discussion. Can anyone advise? Thanks!
- [julia-users] persistent in Julia chobbes158
- Re: [julia-users] persistent in Julia Tamas Papp
- Re: [julia-users] persistent in Julia Kristoffer Carlsson