aboutsummaryrefslogtreecommitdiff
path: root/src/stack.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/stack.nim
parentImproved readme (diff)
downloadnimfunge98-c9b3a999bd003b6489c5679c91c06ec48258e648.tar.gz
nimfunge98-c9b3a999bd003b6489c5679c91c06ec48258e648.tar.bz2
nimfunge98-c9b3a999bd003b6489c5679c91c06ec48258e648.zip
Finished implementing the stackstack
Diffstat (limited to 'src/stack.nim')
-rw-r--r--src/stack.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stack.nim b/src/stack.nim
index eeef5cd..9ba3e24 100644
--- a/src/stack.nim
+++ b/src/stack.nim
@@ -73,6 +73,7 @@ func Transfert*(toss: var Stack, soss: var Stack, n: int) =
soss.height = 0
func Discard*(s: var Stack, n: int) =
+ ## Implements a discard mechanism intended for use with the '}'(aka end) stackstack command
s.height -= n
if s.height < 0:
s.height = 0