(x)
| 9 | } |
| 10 | |
| 11 | push(x) { |
| 12 | /* Push into stackNewest; wich always has the newes elements on top */ |
| 13 | this.stackNewest.push(x); |
| 14 | } |
| 15 | |
| 16 | /* muve elements from stackNewest into stackOldest. This is usually done so that |
| 17 | we can do operations on stackOldest. */ |