Documentation
¶
Index ¶
- type List
- func (l *List) Back() *Node
- func (l *List) Front() *Node
- func (l *List) Init() *List
- func (l *List) InsertAfter(v interface{}, mark *Node) *Node
- func (l *List) InsertBefore(v interface{}, mark *Node) *Node
- func (l *List) Len() int
- func (l *List) MoveAfter(e, mark *Node)
- func (l *List) MoveBefore(e, mark *Node)
- func (l *List) MoveToBack(e *Node)
- func (l *List) MoveToFront(e *Node)
- func (l *List) PushBack(v interface{}) *Node
- func (l *List) PushBackList(other *List)
- func (l *List) PushFront(v interface{}) *Node
- func (l *List) PushFrontList(other *List)
- func (l *List) Remove(e *Node) interface{}
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) InsertAfter ¶
func (*List) InsertBefore ¶
InsertBefore insert a new node e with value v before mark and return e if mark is not a node of l, then return immediately
func (*List) MoveBefore ¶
func (*List) MoveToBack ¶
func (*List) MoveToFront ¶
func (*List) PushBackList ¶
func (*List) PushFrontList ¶
Click to show internal directories.
Click to hide internal directories.