Category : Coding
Well whaddya know? A knew word! A mispelling, I think knot.
The first time I had read this, while reading a React blog article, the author had misspelled the word ‘height’ in a block of CSS code, not more than 4 lines above, so I thought he’d also misspelled the word ‘memorize’.
In a function or object or another such thing, it’s possible to store the last accessed value for returning next time. It ‘memorizes’ the inputs and outputs, and as long as the inputs are the same, the ‘memorized’ output will be returned. This is under the assumption that the function is deterministic.
This process is called ‘memoization‘