Documentation
¶
Index ¶
- type UniqList
- func (t *UniqList) Len() int
- func (t *UniqList) PopBack() interface{}
- func (t *UniqList) PopFront() interface{}
- func (t *UniqList) PushBack(v interface{}) interface{}
- func (t *UniqList) PushBackIgnore(v interface{})
- func (t *UniqList) PushFront(v interface{})
- func (t *UniqList) PushFrontIgnore(v interface{})
- func (t *UniqList) Remove(v interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UniqList ¶
type UniqList struct { Map map[interface{}]*list.Element List list.List // contains filtered or unexported fields }
func (*UniqList) PopBack ¶
func (t *UniqList) PopBack() interface{}
Get the last element and remove it from list
func (*UniqList) PopFront ¶
func (t *UniqList) PopFront() interface{}
Get the first element and remove it from list
func (*UniqList) PushBack ¶
func (t *UniqList) PushBack(v interface{}) interface{}
Push an element to the end of the list. If the element is already in the list, it will be move to the end of the list.
func (*UniqList) PushBackIgnore ¶
func (t *UniqList) PushBackIgnore(v interface{})
Push an element to the end of the list. If the element is already in the list, this func do nothing.
func (*UniqList) PushFront ¶
func (t *UniqList) PushFront(v interface{})
Push an element to the front of the list. If the element is already in the list, it will be move to the front of the list.
func (*UniqList) PushFrontIgnore ¶
func (t *UniqList) PushFrontIgnore(v interface{})
Push an element to the front of the list. If the element is already in the list, this func do nothing.
Click to show internal directories.
Click to hide internal directories.