How to store _parameteric_ functions with JLD2?

If you need to save it, you could use a more explicit data structure instead of an anonymous function. In this case, Base provides such a type for you: you can replace x->f(x,0.01) with Base.Fix2(f, 0.01).

3 Likes