Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶
type Stack[N any] struct { // contains filtered or unexported fields }
Stack a LIFO stack
func (*Stack[N]) Peek ¶
Peek returns the top of this stack and true, if the stack is not empty. Otherwise returns default value of N and false.
Click to show internal directories.
Click to hide internal directories.