diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7487a63..63d31e9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
* Added `_.array`
* Added `_.clear`
* Added `_.time`
+* Added `_.before`
## 1.6.0 (14/04/17)
diff --git a/doc/index.html b/doc/index.html
index 11a9a6f..bace80a 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -395,12 +395,16 @@
Creates a constant function which returns the same output on every call. |
+ memoize (f[, hash]) |
+ Memoizes a given function by caching the computed result. |
+
+
once (f) |
Returns a version of f that runs only once. |
- memoize (f[, hash]) |
- Memoizes a given function by caching the computed result. |
+ before (f, count) |
+ Returns a version of f that will run no more than count times. |
after (f, count) |
@@ -3319,6 +3323,38 @@ Returns:
+
+
+
+ memoize (f[, hash])
+
+
+ Memoizes a given function by caching the computed result.
+ Useful for speeding-up slow-running functions. If a hash
function is passed,
+ it will be used to compute hash keys for a set of input values for caching.
+
Aliased as cache
+
+
+ Parameters:
+
+ - f
+ a function
+
+ - hash
+ a hash function, defaults to identity
+ (optional)
+
+
+
+ Returns:
+
+
+ a new function
+
+
+
+
+
@@ -3346,20 +3382,19 @@ Returns:
See also:
-
- memoize (f[, hash])
+
+ before (f, count)
- Memoizes a given function by caching the computed result.
- Useful for speeding-up slow-running functions. If a hash
function is passed,
- it will be used to compute hash keys for a set of input values for caching.
-
Aliased as cache
+ Returns a version of f
that will run no more than count times. Next calls will
+ keep yielding the results of the count-th call.
Parameters:
@@ -3367,9 +3402,8 @@ Parameters:
f
a function
- hash
- a hash function, defaults to identity
- (optional)
+ count
+ a count
@@ -3380,6 +3414,11 @@ Returns:
+ See also:
+
@@ -3411,7 +3450,8 @@ Returns:
See also:
@@ -5035,7 +5075,7 @@ Returns:
generated by LDoc 1.4.6
-
Last updated 2017-04-27 15:04:19
+
Last updated 2017-04-27 15:26:55