-
Notifications
You must be signed in to change notification settings - Fork 1
fromRange
Subhajit Sahu edited this page Feb 3, 2021
·
16 revisions
Generate iterable from given number range.
Alternatives: from, fromIterator, fromRange, fromInvocation, fromApplication.
function fromRange(v, V, dv)
// v: start number [0]
// V: stop number, excluding [END]
// dv: step size [1]
const xiterable = require('extra-iterable');
[...xiterable.fromRange(0, 4)];
// → [0, 1, 2, 3]
[...xiterable.fromRange(0, 8, 2)];
// → [0, 2, 4, 6]