Course · Section 10: A Closer Look at Functions · Lecture 144: Closures
Implement `createSelector(fn)` returning a function that caches its last result and only recomputes when called with a different (by reference) argument, like a reselect selector.
+ 1 hidden test run on Submit.
A closure caches the last input and output, recomputing only on a new reference, which is how memoized selectors avoid redundant derived-state work.
Run your code to see results.