endless.js
Infinite List in JS similar to Haskell's InfList
Platform | Build Status |
---|---|
Linux | |
Windows |
Install
NPM
npm i endless-js
CDN
Usage
Endless behaves similarly to a normal Array instance. The only difference is that Endless can only be constructed given a function that produces values.
const example = x; // [0, 1, 2, 3, 4, 5, ...]
You can set/get through brackets notation:
example0 = 100;example0; // 100
Documentation
Online documentation available at the Official endless.js docs site
Build
Clone the repo first, then run:
npm install
To build:
npm run build