Documentation ¶
Index ¶
- type LinkedListR
- func (this *LinkedListR) Add(index int, e interface{})
- func (this *LinkedListR) AddFirst(e interface{})
- func (this *LinkedListR) AddLast(e interface{})
- func (this *LinkedListR) Contains(e interface{}) bool
- func (this *LinkedListR) Get(index int) interface{}
- func (this *LinkedListR) GetFirst() interface{}
- func (this *LinkedListR) GetLast() interface{}
- func (this *LinkedListR) GetSize() int
- func (this *LinkedListR) IsEmpty() bool
- func (this *LinkedListR) Remove(index int) interface{}
- func (this *LinkedListR) RemoveElement(e interface{})
- func (this *LinkedListR) RemoveFirst() interface{}
- func (this *LinkedListR) RemoveLast() interface{}
- func (this *LinkedListR) Set(index int, e interface{})
- func (this *LinkedListR) String() string
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedListR ¶
type LinkedListR struct {
// contains filtered or unexported fields
}
func Constructor ¶
func Constructor() *LinkedListR
func (*LinkedListR) Add ¶
func (this *LinkedListR) Add(index int, e interface{})
在链表的index(0-based)位置添加新的元素e
func (*LinkedListR) Get ¶
func (this *LinkedListR) Get(index int) interface{}
获得链表的第index(0-based)个位置的元素
func (*LinkedListR) Remove ¶
func (this *LinkedListR) Remove(index int) interface{}
从链表中删除index(0-based)位置的元素, 返回删除的元素
func (*LinkedListR) RemoveFirst ¶
func (this *LinkedListR) RemoveFirst() interface{}
从链表中删除第一个元素, 返回删除的元素
func (*LinkedListR) RemoveLast ¶
func (this *LinkedListR) RemoveLast() interface{}
从链表中删除最后一个元素, 返回删除的元素
func (*LinkedListR) Set ¶
func (this *LinkedListR) Set(index int, e interface{})
修改链表的第index(0-based)个位置的元素为e
func (*LinkedListR) String ¶
func (this *LinkedListR) String() string
Click to show internal directories.
Click to hide internal directories.