@extra-iterable/from-apply.min
TypeScript icon, indicating that this package has built-in type declarations

2.5.22 • Public • Published

Generates iterable from function application. 📦 😺 🏃 📼 🌔 📜 📰 📘

Alternatives: from, fromRange, fromCall, fromApply.

This is part of package extra-iterable.

This is browserified, minified version of @extra-iterable/from-apply.
It is exported as global variable iterable_fromApply.
CDN: unpkg, jsDelivr.


iterable.fromApply([fm], v, [n]);
// fm: map function (v, i)
// v:  start value
// n:  number of values (-1 => Inf)
const iterable = require("extra-iterable");

[...iterable.fromApply(v => v+2, 2, 4)];
// [ 2, 4, 6, 8 ]

[...iterable.fromApply(v => v*2, 2, 4)];
// [ 2, 4, 8, 16 ]


References

Install

npm i @extra-iterable/from-apply.min

DownloadsWeekly Downloads

6

Version

2.5.22

License

MIT

Unpacked Size

5.25 kB

Total Files

7

Last publish

Collaborators

  • wolfram77