Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Stack/Elisa/stack-3.elisa
Normal file
15
Task/Stack/Elisa/stack-3.elisa
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use GenericStack (StackofBooks, Book);
|
||||
type Book = text;
|
||||
BookStack = StackofBooks(50);
|
||||
|
||||
Push (BookStack, "Peter Pan");
|
||||
Push (BookStack, "Alice in Wonderland");
|
||||
|
||||
Pull (BookStack)?
|
||||
"Alice in Wonderland"
|
||||
|
||||
Pull (BookStack)?
|
||||
"Peter Pan"
|
||||
|
||||
Pull (BookStack)?
|
||||
***** Exception: Stack Underflow
|
||||
Loading…
Add table
Add a link
Reference in a new issue