aboutsummaryrefslogtreecommitdiff
path: root/src/stackStack.nim
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-04 20:10:21 +0200
committerJulien Dessaux2021-10-04 20:10:21 +0200
commitc9b3a999bd003b6489c5679c91c06ec48258e648 (patch)
treeffef54a52d86506cf422473a07de0b62d7aeb69e /src/stackStack.nim
parentImproved readme (diff)
downloadnimfunge98-c9b3a999bd003b6489c5679c91c06ec48258e648.tar.gz
nimfunge98-c9b3a999bd003b6489c5679c91c06ec48258e648.tar.bz2
nimfunge98-c9b3a999bd003b6489c5679c91c06ec48258e648.zip
Finished implementing the stackstack
Diffstat (limited to '')
-rw-r--r--src/stackStack.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stackStack.nim b/src/stackStack.nim
index 6d32c87..1bc89c0 100644
--- a/src/stackStack.nim
+++ b/src/stackStack.nim
@@ -25,6 +25,12 @@ func PushVector*(ss: var StackStack, v: tuple[x, y: int]) =
func Clear*(ss: var StackStack) =
ss.head[].Clear()
+func Duplicate*(ss: var StackStack) =
+ ss.head[].Duplicate()
+
+func Swap*(ss: var StackStack) =
+ ss.head[].Swap()
+
func Begin*(ss: var StackStack, v: tuple[x, y: int]) =
inc ss.height
let soss = ss.head