nstack

package
v0.0.0-...-a7715a5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIsEmpty = fmt.Errorf("stack is empty")

Functions

This section is empty.

Types

type Element

type Element struct {
	// contains filtered or unexported fields
}

type Stack

type Stack struct {
	// contains filtered or unexported fields
}

func New

func New(n int) *Stack

func (*Stack) Peek

func (s *Stack) Peek(stackId int) (interface{}, error)

func (*Stack) Pop

func (s *Stack) Pop(stackId int) (interface{}, error)

func (*Stack) Push

func (s *Stack) Push(stackId int, value interface{}) error

Jump to

Keyboard shortcuts

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