package
Version:
v0.1.19
Opens a new window with list of versions in this module.
Published: Aug 17, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
package stack provides a generic first-in / first-out stack.
func NewStack[V any]() *stack[V]
type Stack[V any] interface {
Depth() int
Push(V)
Pop() V
Peek(int) V
Replace(int, V)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.