From e041d6de779517e8ae12e2a5a732751eda82374b Mon Sep 17 00:00:00 2001 From: code-guru Date: Mon, 7 Dec 2015 10:37:18 +0100 Subject: [PATCH] Edit Laziness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Function ´pull´ also cause a thunk. --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index a9d2876..5b83db9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -386,7 +386,7 @@

Laziness

}); // calls === 0 -

To get the map iterator to be called, we must pull some data from the Stream. This is called a thunk, and some Highland methods will cause them (eg, each, done, apply, toArray, pipe, resume).

+

To get the map iterator to be called, we must pull some data from the Stream. This is called a thunk, and some Highland methods will cause them (eg, each, done, apply, toArray, pipe, resume, pull).

nums.each(function (n) { console.log(n); });
 
 // calls === 3