Documentation ¶
Overview ¶
Package list : a list
Index ¶
- type Iterator
- func (i Iterator) Back() Iterator
- func (i Iterator) Destroy()
- func (i Iterator) Equal(it Iterator) bool
- func (i Iterator) Front() Iterator
- func (i Iterator) InsertBack(value interface{}) (Iterator, bool)
- func (i Iterator) InsertFront(value interface{}) (Iterator, bool)
- func (i Iterator) IsEnd() bool
- func (i *Iterator) MoveBack()
- func (i *Iterator) MoveFront()
- func (i Iterator) Remove() (interface{}, bool)
- func (i Iterator) Set(value interface{}) bool
- func (i Iterator) Valid() bool
- func (i Iterator) Value() (interface{}, bool)
- type List
- func (l *List) Back() Iterator
- func (l *List) Front() Iterator
- func (l *List) Init() *List
- func (l *List) PopBack() (interface{}, bool)
- func (l *List) PopFront() (interface{}, bool)
- func (l *List) PushBack(value interface{}) Iterator
- func (l *List) PushFront(value interface{}) Iterator
- func (l *List) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator : iterator of list
func (Iterator) InsertBack ¶
InsertBack : insert a node back of current
func (Iterator) InsertFront ¶
InsertFront : insert a node front of current
Click to show internal directories.
Click to hide internal directories.