arraystack

package
v0.0.0-...-3b2a8e7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayStack

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

func New

func New(capacity int) *ArrayStack

func (*ArrayStack) GetSize

func (as *ArrayStack) GetSize() int

func (*ArrayStack) IsEmpty

func (as *ArrayStack) IsEmpty() bool

func (*ArrayStack) Peek

func (as *ArrayStack) Peek() interface{}

查看栈顶元素

func (*ArrayStack) Pop

func (as *ArrayStack) Pop() interface{}

弹出栈顶元素

func (*ArrayStack) Push

func (as *ArrayStack) Push(element interface{})

压入栈顶元素

func (*ArrayStack) String

func (as *ArrayStack) String() string

Jump to

Keyboard shortcuts

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