stack

package
v0.1.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

package stack provides a generic first-in / first-out stack.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStack

func NewStack[V any]() *stack[V]

Types

type Stack

type Stack[V any] interface {
	Depth() int
	Push(V)
	Pop() V
	Peek(int) V
	Replace(int, V)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL