Warning: this is an htmlized version!
The original is across this link,
and the conversion rules are here.
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> dofile "stacks.lua"
> s = Stack.new()
> s:push(22):push(33):PP()
 {1=22, 2=33}
> = s:clear():push(22):push(33):PP():push(44):PP():dropn(2)
 {1=22, 2=33}
 {1=22, 2=33, 3=44}
1=22
> = s:clear():push(22):push(33):PP():push(44):PP():dropn(2):PP():pop()
 {1=22, 2=33}
 {1=22, 2=33, 3=44}
 {1=22}
22	
> = Stack.new():push(11):push(22):push(33)
3=33
2=22
1=11
> 
>