Documentation
¶
Overview ¶
linkedlist 包为 Item 类型的元素创建一个 ItemLinkedList 链表
Index ¶
- type Item
- type ItemLinkedList
- func (list *ItemLinkedList) Append(t Item)
- func (list *ItemLinkedList) Head() *Node
- func (list *ItemLinkedList) IndexOf(t Item) int
- func (list *ItemLinkedList) Insert(i int, t Item) error
- func (list *ItemLinkedList) IsEmpty() bool
- func (list *ItemLinkedList) RemoveAt(i int) (*Item, error)
- func (list *ItemLinkedList) Size() int
- func (list *ItemLinkedList) String()
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemLinkedList ¶
type ItemLinkedList struct {
// contains filtered or unexported fields
}
func (*ItemLinkedList) Insert ¶
func (list *ItemLinkedList) Insert(i int, t Item) error
在链表指定位置插入指定元素
Click to show internal directories.
Click to hide internal directories.