RosettaCodeData/Task/Stack/Frink/stack.frink

7 lines
83 B
Plaintext

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