Pop removes an element from the stack.
()
| 16 | |
| 17 | // Pop removes an element from the stack. |
| 18 | func (s *loopStack) Pop() { |
| 19 | s.loops = s.loops[:len(s.loops)-1] |
| 20 | } |
| 21 | |
| 22 | // Push pushes a new element to the stack. |
| 23 | func (s *loopStack) Push(loop *Loop) { |