Skip to content

make-github-pseudonymous-again/js-itertools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

🛠️ 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