stack

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: GPL-2.0 Imports: 0 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 comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[T comparable](vals ...T) Stack[T]

func (Stack[T]) Len

func (s Stack[T]) Len() int

func (*Stack[T]) Pop

func (s *Stack[T]) Pop() (v T, ok bool)

func (*Stack[T]) Push

func (s *Stack[T]) Push(vals ...T)

Jump to

Keyboard shortcuts

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