Size returns the number of elements in the stack.
()
| 25 | |
| 26 | // Size returns the number of elements in the stack. |
| 27 | func (s *Array[T]) Length() int { |
| 28 | return len(s.elements) |
| 29 | } |
| 30 | |
| 31 | // Peek returns the top element of the stack without removing it. |
| 32 | func (s *Array[T]) Peek() T { |
nothing calls this directly
no outgoing calls
no test coverage detected