NewStack creates and returns a new stack.
()
| 15 | |
| 16 | // NewStack creates and returns a new stack. |
| 17 | func NewStack[T any]() *Array[T] { |
| 18 | return &Array[T]{} |
| 19 | } |
| 20 | |
| 21 | // Push adds an element to the top of the stack. |
| 22 | func (s *Array[T]) Push(value T) { |
nothing calls this directly
no outgoing calls
no test coverage detected