Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Stack/PostScript/stack.ps
Normal file
11
Task/Stack/PostScript/stack.ps
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
% empty? is already defined.
|
||||
/push {exch cons}.
|
||||
/pop {uncons exch pop}.
|
||||
[2 3 4 5 6] 1 push
|
||||
= [1 2 3 4 5 6]
|
||||
[1 2 3 4 5 6] pop
|
||||
=[2 3 4 5 6]
|
||||
[2 3 4 5 6] empty?
|
||||
=false
|
||||
[] empty?
|
||||
=true
|
||||
Loading…
Add table
Add a link
Reference in a new issue