Skip to content

Commit

Permalink
add empty!(::Stack) method
Browse files Browse the repository at this point in the history
  • Loading branch information
smldis authored May 6, 2018
1 parent 0d2ef74 commit 146d556
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ end

pop!(s::Stack) = pop!(s.store)

empty!(s::Stack) = (empty!(s.store); s)

start(st::Stack) = start(reverse_iter(st.store))
next(st::Stack, s) = next(reverse_iter(st.store), s)
done(st::Stack, s) = done(reverse_iter(st.store), s)
Expand Down

0 comments on commit 146d556

Please sign in to comment.