aboutsummaryrefslogtreecommitdiff
path: root/src/stackStack.nim
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-22 18:45:54 +0200
committerJulien Dessaux2021-10-22 18:45:54 +0200
commit9321586129b0019057df9b975e46335e4a118e1d (patch)
treee953a623769270c13e2efedbdf4230dd26bb7337 /src/stackStack.nim
parentFixed readme entry about code coverage (diff)
downloadnimfunge98-9321586129b0019057df9b975e46335e4a118e1d.tar.gz
nimfunge98-9321586129b0019057df9b975e46335e4a118e1d.tar.bz2
nimfunge98-9321586129b0019057df9b975e46335e4a118e1d.zip
Simplified some stack stack code
Diffstat (limited to '')
-rw-r--r--src/stackStack.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stackStack.nim b/src/stackStack.nim
index b2bf29f..4445b1a 100644
--- a/src/stackStack.nim
+++ b/src/stackStack.nim
@@ -74,8 +74,8 @@ func Under*(ss: var StackStack): bool =
soss[].Push(ss.Pop())
return false
-func GetHeights*(ss: StackStack): (int, seq[int]) =
- return (ss.height, ss.head[].GetHeights)
+func GetHeights*(ss: StackStack): seq[int] =
+ return ss.head[].GetHeights
func YCommandPick*(ss: var StackStack, n, h: int) =
ss.head[].YCommandPick(n, h)