Push adds the given value to the stack.
(value T)
| 65 | |
| 66 | // Push adds the given value to the stack. |
| 67 | func (s *Stack[T]) Push(value T) { |
| 68 | s.values = append(s.values, value) |
| 69 | } |
| 70 | |
| 71 | // Empty returns whether the stack is empty. |
| 72 | func (s *Stack[T]) Empty() bool { |
no outgoing calls
no test coverage detected