I have functions defined to remember their values
f[x_]:=f[x]
I would like to be able to close a notebook without losing the computed values, what is the simplest/appropriate way to do so?
Would DumpSave[] work?
EDIT:
The solution in the duplicate answer doesn't mention the specific construct I'm using and is not simple, because modifying every object to include a Once[] statement makes the code harder to read and to mantain, hence it isn't simple.
One of the solutions proposed is to use DumpSave but doesn't provide an example of how to use it and it's not clear whether it will work in my case.
DumpSavewon't work, then you should explain what exactly is the problem you are facing. What aboutDumpSavedoesn't work? What have you tried? – Roman May 12 '19 at 13:04