Generates array from function application.
npm install @extra-array/from-apply.minGenerates array from function application.
:package:
:smiley_cat:
:running:
:vhs:
:moon:
:scroll:
:newspaper:
:blue_book:
> Alternatives: [from], [from$], [fromRange], [fromApply].
> This is part of package [extra-array].
[extra-array]: https://www.npmjs.com/package/extra-array
> This is browserified, minified version of [@extra-array/from-apply].
> It is exported as global variable array_fromApply.
> CDN: [unpkg], [jsDelivr].
[@extra-array/from-apply]: https://www.npmjs.com/package/@extra-array/from-apply
[unpkg]: https://unpkg.com/@extra-array/from-apply.min
[jsDelivr]: https://cdn.jsdelivr.net/npm/@extra-array/from-apply.min
``javascript`
array.fromApply(fn, v, [n]);
// fn: map function (v, i, x)
// v: start value
// n: number of values (0)
`javascript
const array = require("extra-array");
array.fromApply(v => v+2, 2, 4);
// [ 2, 4, 6, 8 ]
array.fromApply(v => v*2, 2, 4);
// [ 2, 4, 8, 16 ]
``
[from]: https://github.com/nodef/extra-array/wiki/from
[fromRange]: https://github.com/nodef/extra-array/wiki/fromRange
[fromApply]: https://github.com/nodef/extra-array/wiki/fromApply
[from$]: https://github.com/nodef/extra-array/wiki/from$