array

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

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

func New

func New(capacity int) Array

New 构造函数,传入数组的容量capacity构造Array

func (*Array) GetCapacity

func (a *Array) GetCapacity() int

GetCapacity 获取数组的容量

func (*Array) GetSize

func (a *Array) GetSize() int

GetSize 获得数组中的元素个数

func (*Array) IsEmpty

func (a *Array) IsEmpty() bool

IsEmpty 返回数组是否为空

Jump to

Keyboard shortcuts

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