@iterable-iterator/map

1.0.1 • Public • Published

➡️ @iterable-iterator/map

Iterable mapping functions for JavaScript. See docs.

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

import {truth} from '@functional-abstraction/operator';
import {map} from '@iterable-iterator/map';
map( truth , [ 0 , 1 , null , undefined , "A" ] ) ; // F T F F T

import {mul} from '@functional-abstraction/operator';
import {zip} from '@iterable-iterator/zip';
import {count} from '@iterable-iterator/count';
import {starmap} from '@iterable-iterator/map';
starmap( mul , zip( count( 0 , 1 ) , count( 0 , 1 ) ) ) ; // 0 1 4 9 16 25 36 ...

import {range} from '@iterable-iterator/range';
import {pick} from '@iterable-iterator/map';
pick("ABCD", range(2)); // A B

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

Package Sidebar

Install

npm i @iterable-iterator/map

Weekly Downloads

200

Version

1.0.1

License

AGPL-3.0

Unpacked Size

512 kB

Total Files

14

Last publish

Collaborators

  • raskat
  • aureooms