Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StackArray ¶
type StackArray[T any] struct { // contains filtered or unexported fields }
func (*StackArray[T]) IsEmpty ¶
func (s *StackArray[T]) IsEmpty() bool
IsEmpty check if stack is empty
func (*StackArray[T]) Peek ¶
func (s *StackArray[T]) Peek() (T, error)
Peek peek top node in the stack
func (*StackArray[T]) Pop ¶
func (s *StackArray[T]) Pop() (T, error)
Pop remove top node in the stack
func (*StackArray[T]) Push ¶
func (s *StackArray[T]) Push(x T) error
Push add node to the top of the stack
Click to show internal directories.
Click to hide internal directories.