array

package
v0.0.0-...-73cdf94 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 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 Array

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

func Init

func Init() *Array

func New

func New(cap int) *Array

func (*Array) Add

func (arr *Array) Add(i int, e interface{})

向数组中指定位置i添加元素e

func (*Array) AddFirst

func (arr *Array) AddFirst(e interface{})

func (*Array) AddLast

func (arr *Array) AddLast(e interface{})

func (*Array) Cap

func (arr *Array) Cap() int

func (*Array) Contains

func (arr *Array) Contains(e interface{}) bool

func (*Array) Find

func (arr *Array) Find(e interface{}) int

func (*Array) Get

func (arr *Array) Get(i int) interface{}

func (*Array) IsEmpty

func (arr *Array) IsEmpty() bool

func (*Array) Len

func (arr *Array) Len() int

func (*Array) Remove

func (arr *Array) Remove(i int) interface{}

func (*Array) RemoveElement

func (arr *Array) RemoveElement(e interface{})

func (*Array) RemoveFirst

func (arr *Array) RemoveFirst() interface{}

func (*Array) RemoveLast

func (arr *Array) RemoveLast() interface{}

func (*Array) Set

func (arr *Array) Set(i int, e interface{})

func (*Array) String

func (arr *Array) String() string

Jump to

Keyboard shortcuts

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