Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶
type Stack[T any] struct { // contains filtered or unexported fields }
Stack is used to implement the last-in first-out.
func (*Stack[T]) Peek ¶
Peek is used to access the top-most element from the stack.
If there are no elements in the stack, then the default value of the type is returned and a boolean value false stating that no elements were popped.
Click to show internal directories.
Click to hide internal directories.