January 2020
Intermediate to advanced
470 pages
11h 13m
English
What can we do if we have to work with a function that receives two or more arguments, or that can receive arrays or objects as arguments? Of course, like in the problem that we looked at in Chapter 2, Thinking Functionally – A First Example, about having a function do its job only once, we could simply ignore the question: if the function to be memoized is unary, we go through the memoization process; otherwise, if the function has a different arity, we just don't do anything!