lastack

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

type Stack

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

func New

func New() *Stack

func NewWithCap

func NewWithCap(cap int) *Stack

func (*Stack) Clear

func (as *Stack) Clear()

func (*Stack) Empty

func (as *Stack) Empty() bool

func (*Stack) Index

func (as *Stack) Index(idx int) (interface{}, bool)

func (*Stack) Peek

func (as *Stack) Peek() (interface{}, bool)

func (*Stack) Pop

func (as *Stack) Pop() (interface{}, bool)

func (*Stack) Push

func (as *Stack) Push(v interface{})

func (*Stack) Size

func (as *Stack) Size() uint

func (*Stack) String

func (as *Stack) String() string

String 左为Top

func (*Stack) Values

func (as *Stack) Values() []interface{}

Jump to

Keyboard shortcuts

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