YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
|
|
@ -1,7 +1,5 @@
|
|||
REBOL [
|
||||
Title: "Stack"
|
||||
Author: oofoe
|
||||
Date: 2010-10-04
|
||||
URL: http://rosettacode.org/wiki/Stack
|
||||
]
|
||||
|
||||
|
|
|
|||
17
Task/Stack/Ring/stack.ring
Normal file
17
Task/Stack/Ring/stack.ring
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Project : Stack
|
||||
|
||||
load "stdlib.ring"
|
||||
ostack = new stack
|
||||
for n = 5 to 7
|
||||
see "Push: " + n + nl
|
||||
ostack.push(n)
|
||||
next
|
||||
see "Pop:" + ostack.pop() + nl
|
||||
see "Push: " + "8" + nl
|
||||
ostack.push(8)
|
||||
while len(ostack) > 0
|
||||
see "Pop:" + ostack.pop() + nl
|
||||
end
|
||||
if len(ostack) = 0
|
||||
see "Pop: stack is empty" + nl
|
||||
ok
|
||||
Loading…
Add table
Add a link
Reference in a new issue