Memoizing a Function The code below memoizes a function. As an example, fibonacci is memoized. View the code on Gist.