Documentation
¶
Index ¶
- type Array
- func (a *Array) Add(index int, e interface{})
- func (a *Array) AddFirst(e interface{})
- func (a *Array) AddLast(e interface{})
- func (a *Array) Contains(e interface{}) bool
- func (a *Array) Find(e interface{}) int
- func (a *Array) FindAll(e interface{}) (indexes []int)
- func (a *Array) Get(index int) interface{}
- func (a *Array) GetCapacity() int
- func (a *Array) GetSize() int
- func (a *Array) IsEmpty() bool
- func (a *Array) Remove(index int) interface{}
- func (a *Array) RemoveAllElement(e interface{}) bool
- func (a *Array) RemoveElement(e interface{}) bool
- func (a *Array) RemoveFirst() interface{}
- func (a *Array) RemoveLast() interface{}
- func (a *Array) Set(index int, e interface{})
- func (a *Array) String() string
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 (*Array) RemoveAllElement ¶
RemoveAllElement 从数组中删除所有元素 e
func (*Array) RemoveElement ¶
RemoveElement 从数组中删除一个元素 e
func (*Array) RemoveFirst ¶
func (a *Array) RemoveFirst() interface{}
RemoveFirst 从数组中删除第一个元素,返回删除的元素
Click to show internal directories.
Click to hide internal directories.