stack

package
v0.0.0-...-b5d690a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item string

type ItemStack

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

func (*ItemStack) IsEmpty

func (s *ItemStack) IsEmpty() bool

判空

func (*ItemStack) New

func (s *ItemStack) New() *ItemStack

创建栈

func (*ItemStack) Pop

func (s *ItemStack) Pop() string

出栈

func (*ItemStack) Push

func (s *ItemStack) Push(t string)

入栈

func (*ItemStack) Top

func (s *ItemStack) Top() string

取栈顶

Jump to

Keyboard shortcuts

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