Skip to content

Commit

Permalink
Merge pull request #258 from domeengine/release/1.8.1
Browse files Browse the repository at this point in the history
Release/1.8.1 - Bug hotfix release
  • Loading branch information
avivbeeri authored Mar 9, 2023
2 parents ffc441e + ac27b56 commit fa704e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/collections.wren
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ class Stack is Sequence {
count { _list.count }

push(v) {
_list.add(v)
_list.insert(0, v)
}
peek() {
if (_list.isEmpty) {
return null
}
return _list[-1]
return _list[0]
}
pop() {
if (_list.isEmpty) {
return null
}
return _list.removeAt(-1)
return _list.removeAt(0)
}
clear() { _list.clear() }

Expand Down

0 comments on commit fa704e2

Please sign in to comment.