-
Notifications
You must be signed in to change notification settings - Fork 1
shift
Subhajit Sahu edited this page May 10, 2020
·
21 revisions
iterable.shift(x);
// x: an iterable
// --> [value, iterator]
const iterable = require('extra-iterable');
var x = [1, 2, 3];
iterable.shift(x);
// [1, Iterable [2, 3]]
var x = [1, 2, 3, 4];
iterable.shift(x);
// [1, Iterable [2, 3, 4]]