stack

package
v0.0.0-...-6223b4e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterable

type Iterable[T any] interface {
	Next() (data T, exists bool)
}

type Stack

type Stack[T any] interface {
	Push(data T)
	Pop() (T, bool)
	Peek() (T, bool)
	Size() int
	Iter() Iterable[T]
}

func New

func New[T any]() Stack[T]

Jump to

Keyboard shortcuts

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