-
Notifications
You must be signed in to change notification settings - Fork 5
fromRange
Subhajit Sahu edited this page May 19, 2020
·
13 revisions
Generates iterable from given number range. [:running:] [:vhs:] [:package:] [:moon:] [:ledger:]
Alternatives: [from], [fromRange], [fromApply].
iterable.fromRange(v, [s], [V]);
// v: start number
// s: step size
// V: end number (excluding)
const array = require('extra-array');
array.fromRange(0, 1, 4);
// [ 0, 1, 2, 3 ]
array.fromRange(0, 2, 8);
// [ 0, 2, 4, 6 ]