0.2.0 • Published 5 years ago

endless-js v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

endless.js

Infinite List in JS similar to Haskell's InfList

NPM

npm.io HitCount

PlatformBuild Status
LinuxBuild Status
WindowsBuild status

codecov

Known Vulnerabilities devDependencies Status

Install

NPM

npm i endless-js

CDN

<script style="https://cdn.jsdelivr.net/npm/endless-js/dist/index.min.js"></script>

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 = new Endless(x => x); // [0, 1, 2, 3, 4, 5, ...]

You can set/get through brackets notation:

example[0] = 100;
example[0]; // 100

Documentation

Inline docs

Online documentation available at the Official endless.js docs site

Build

Clone the repo first, then run:

npm install

To build:

npm run build
0.2.0

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago