There was an error while loading. Please reload this page.
Generate iterable from repeated function application.
Alternatives: from, fromIterator, fromRange, fromInvocation, fromApplication.
function fromApplication(fm, v) // fm: map function (v, i) // v: start value
const xiterable = require('extra-iterable'); [...xiterable.fromApplication(v => v+2, 2, 4)]; // → [2, 4, 6, 8] [...xiterable.fromApplication(v => v*2, 2, 4)]; // → [2, 4, 8, 16]