a = new array a.push[1] a.push[2] a.peek[] while ! a.isEmpty[] println[a.pop[]]