stack

package
v0.0.0-...-6c3242c Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

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
}

func New

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

func (*Stack[T]) Empty

func (c *Stack[T]) Empty() bool

func (*Stack[T]) Front

func (c *Stack[T]) Front() (T, error)

func (*Stack[T]) Pop

func (c *Stack[T]) Pop() (T, error)

func (*Stack[T]) Push

func (c *Stack[T]) Push(value T)

func (*Stack[T]) Size

func (c *Stack[T]) Size() int

Jump to

Keyboard shortcuts

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