Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Stack/Factor/stack.factor
Normal file
12
Task/Stack/Factor/stack.factor
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
V{ 1 2 3 } {
|
||||
[ 6 swap push ]
|
||||
[ "hi" swap push ]
|
||||
[ "Vector is now: " write . ]
|
||||
[ "Let's pop it: " write pop . ]
|
||||
[ "Vector is now: " write . ]
|
||||
[ "Top is: " write last . ] } cleave
|
||||
|
||||
Vector is now: V{ 1 2 3 6 "hi" }
|
||||
Let's pop it: "hi"
|
||||
Vector is now: V{ 1 2 3 6 }
|
||||
Top is: 6
|
||||
Loading…
Add table
Add a link
Reference in a new issue