Generates array from function application.
This is part of package extra-array.
This is browserified, minified version of @extra-array/from-apply.
It is exported as global variable array_fromApply.
CDN: unpkg, jsDelivr.
array.fromApply(fn, v, [n]);
// fn: map function (v, i, x)
// v: start value
// n: number of values (0)
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 ]