22.02.18 14:29, Chris Angelico пише:
Not overly misleading; the point of it is to show how trivially easy
it is to memoize a function in Python. For a fair comparison, I'd like
to see the equivalent Julia code: the function, unchanged, with
something around the outside of it to manage caching and memoization.
Can that be done with a couple of trivial lines of code using only the
The article contains a reference to a Julia example.
> Note that Julia also can memoize functions, see this example 
provided by Ismael V.C.