Skip to content

Latest commit

 

History

History
115 lines (97 loc) · 5.77 KB

README.md

File metadata and controls

115 lines (97 loc) · 5.77 KB

🛠️ js-itertools License


© xkcd.com

Python's iterable and iterator library for JavaScript. Parent is js-library.

⚠️ Depending on your environment, the code may require regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

import {cycle} from '@iterable-iterator/cycle';
import {chain} from '@iterable-iterator/chain';
cycle( chain( [ 0 , 1 , 2 ] , [ 3 , 4 , 5 ] ) ) ; // 0 1 2 3 4 5 0 1 ...

📰 Description

The goal of this project is to make (the parts that interest me of) the following python constructs/idioms/libraries available in JavaScript under the AGPL-3.0 license.

The corresponding software library used to be released as a monolith. It has since been split up into multiple packages.

🌳 Hierarchy

The packages are released under multiple npm @scopes. Extra features are marked with a *.

🔗 More references in Python and JavaScript