0.9.1 • Published 3 months ago

3h-iter v0.9.1

Weekly downloads
33
License
MIT
Repository
github
Last release
3 months ago

3h-iter

An iterator lib.

Introduction

3h-iter is an iterator library that provides useful iterator-related helpers, such as map, range, chain, zip and so on. It is recommanded to use 3h-iter with ES2015+ syntax.

Example Usage

import { range, zip } from '3h-iter';

for (const i of range(5)) {
    console.log(i);
}
// Prints 0 through 4 in console.

const numbers = [0, 1, 2];
const strings = ['a', 'b', 'c'];
for (const tuple of zip(numbers, strings)) {
    console.log(tuple);
}
// Prints the following tuples:
// [ 0, 'a' ]
// [ 1, 'b' ]
// [ 2, 'c' ]

Links

0.9.0

3 months ago

0.9.1

3 months ago

0.8.0

3 months ago

0.5.0

8 months ago

0.7.0

8 months ago

0.6.0

8 months ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago