Returns a new sequence with the same elements as this one, minus the first element.
ArrayLikeSequence.shift = function() { /*...*/ }
ArrayLikeSequence.shift = function shift() { return this.drop(); }
Name | Type(s) | Description |
---|---|---|
returns | ArrayLikeSequence | The new array-like sequence. |
Lazy([1, 2, 3]).shift() // sequence: [2, 3] Lazy([]).shift() // sequence: []