Documentation ¶
Overview ¶
本包提供链表实现
Index ¶
- type Element
- func (e *Element) Get() (interface{}, error)
- func (e *Element) Next() *Element
- func (e *Element) Prev() *Element
- func (e *Element) Set(x interface{}) error
- func (e *Element) String() string
- func (e *Element) Tsget() (x interface{}, err error)
- func (e *Element) Tsnext() (x *Element)
- func (e *Element) Tsprev() (x *Element)
- func (e *Element) Tsset(x interface{}) error
- type SingleLinkedList
- type Slist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct { NextOne *Element // contains filtered or unexported fields }
链表中某一元素
type SingleLinkedList ¶
type SingleLinkedList struct {
// contains filtered or unexported fields
}
单链表的实现
Click to show internal directories.
Click to hide internal directories.