News

Functions that rely on something outside the function itself (e.g., a network call, or a read from disk) are harder to memoize, though it can still be done.
This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites.