(/*...values*/)
| 47 | // @pragma Modification |
| 48 | |
| 49 | push(/*...values*/) { |
| 50 | if (arguments.length === 0) { |
| 51 | return this; |
| 52 | } |
| 53 | const newSize = this.size + arguments.length; |
| 54 | let head = this._head; |
| 55 | for (let ii = arguments.length - 1; ii >= 0; ii--) { |
| 56 | head = { |
| 57 | value: arguments[ii], |
| 58 | next: head, |
| 59 | }; |
| 60 | } |
| 61 | if (this.__ownerID) { |
| 62 | this.size = newSize; |
| 63 | this._head = head; |
| 64 | this.__hash = undefined; |
| 65 | this.__altered = true; |
| 66 | return this; |
| 67 | } |
| 68 | return makeStack(newSize, head); |
| 69 | } |
| 70 | |
| 71 | pushAll(iter) { |
| 72 | iter = IndexedCollection(iter); |
nothing calls this directly
no test coverage detected