Skip to content
Browse files

simplify Stack#pop

  • Loading branch information...
1 parent c3ea0fd commit 9f5c5b81346c069a76b560df515a883bab45ffda @bakkdoor committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/stack.fy
View
2 lib/stack.fy
@@ -40,7 +40,7 @@ class Stack {
Pops the top-of-stack element from the Stack and returns it.
"""
- @arr remove_at: (size - 1)
+ @arr remove_at: -1
}
def top {

0 comments on commit 9f5c5b8

Please sign in to comment.
Something went wrong with that request. Please try again.