From d71f4808c19f8c2331c4e52da573f97715845b5f Mon Sep 17 00:00:00 2001
From: Jeremy Ashkenas
Date: Sun, 20 Mar 2011 19:05:03 -0400
Subject: [PATCH] Issue #137. Docs for memoize.
---
index.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 1cf3c4151..f3e6a30b7 100644
--- a/index.html
+++ b/index.html
@@ -676,7 +676,9 @@ jQuery('#underscore_button').bind('click', buttonView.onClick);
Memoizes a given function by caching the computed result. Useful
for speeding up slow-running computations. If passed an optional
hashFunction, it will be used to compute the hash key for storing
- the result, based on the arguments to the original function.
+ the result, based on the arguments to the original function. The default
+ hashFunction just uses the first argument to the memoized function
+ as the key.
var fibonacci = function(n) {