JSPM

  • Created
  • Published
  • Downloads 30
  • Score
    100M100P100Q61075F
  • License MIT

lazy fluent iterators

Package Exports

  • ts-fluent-iterators
  • ts-fluent-iterators/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ts-fluent-iterators) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Typescript Fluent Iterators

Provides fluent api operations on iterators, async iterators and promise iterators.

Description

The library provides the common transformation, filtering and aggregation operations on iterators, async iterators and promise iterators.

Quick start guide

Install from Node Package Manager: npm i ts-fluent-iterators

Add the following code to your index file:

import { iterator, Generators } from 'ts-fluent-iterators';

const iter = iterator(Generators.range());

console.log(`The first five even numbers are: ${iter.filter(n => n % 2 === 0).take(5).collect()}`);

Operations supported

Usage

Click here for the Full API Reference.

License

Licensed under MIT.