stack

package
v0.0.0-...-91ba548 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

type Stack[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any]() *Stack[T]

func (*Stack[T]) IsEmpty

func (receiver *Stack[T]) IsEmpty() bool

func (*Stack[T]) Popup

func (receiver *Stack[T]) Popup() T

func (*Stack[T]) Push

func (receiver *Stack[T]) Push(value T)

func (*Stack[T]) Size

func (receiver *Stack[T]) Size() int

Size 获取栈大小

Jump to

Keyboard shortcuts

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