From 3c7a53f987becc1f9437bc6f6462d2e7d5327cde Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Sun, 3 Jun 2018 01:27:26 +0530 Subject: [PATCH] [docs] Explain "next" --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d995517..9f6fca2 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,11 @@ In the browser: ## Usage ```JavaScript +// Initialise a new InfiniteList using the constructor. +// `start` is any value. +// `next` is a pure function that accepts current +// (and optionally previous) value in the series + const infinity = new InfiniteList(, ); // Gets item at index