Push adds an element to the top of the stack.
(value T)
| 20 | |
| 21 | // Push adds an element to the top of the stack. |
| 22 | func (s *Array[T]) Push(value T) { |
| 23 | s.elements = append(s.elements, value) |
| 24 | } |
| 25 | |
| 26 | // Size returns the number of elements in the stack. |
| 27 | func (s *Array[T]) Length() int { |
nothing calls this directly
no outgoing calls
no test coverage detected