An iterator library that is so simple you could have written it yourself.
ECMAScriopt's new (async) generator functions are powerful and almost seem to be designed to build libraries like these.
- Sync iterator version
- Async iterator version
- itertools Feature Parity
- Type Declarations
- Typedoc
- Basic Tests
- Advanced Tests
- Usable everywhere
- Deno
- Node Modules
- Node Require
- Browser Imports
- 1.0 Release
// main.ts
import * as lilit from 'https://unpkg.com/lilit/ts/index.ts';
Run via deno main.ts
// main.mjs
import * as lilit from 'lilit/mjs';
Run via node --experimental-modules main.mjs
// main.js
const lilit = require('lilit');
Run via node main.js
// main.js
import * as lilit from 'https://unpkg.com/lilit/mjs/index.mjs';
Load via <script type="module" src="./main.js"></script>
To see what else is availabe, browse the package contents.