From c9b3a999bd003b6489c5679c91c06ec48258e648 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 4 Oct 2021 20:10:21 +0200 Subject: Finished implementing the stackstack --- src/stackStack.nim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/stackStack.nim') 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 -- cgit v1.2.3