Documentation ¶
Index ¶
- type Element
- type List
- func (s *List) Each(call func(*Element) bool)
- func (s *List) First() (elem *Element)
- func (s *List) Index(index int) (elem *Element)
- func (s *List) Last() (elem *Element)
- func (s *List) PushBack(v interface{}) (elem *Element)
- func (s *List) PushBackIfNotExists(v interface{}) (elem *Element, added bool)
- func (s *List) PushFront(v interface{}) (elem *Element)
- func (s *List) PushFrontIfNotExists(v interface{}) (elem *Element, added bool)
- func (s *List) Remove(elem *Element)
- func (s *List) Search(val interface{}) *Element
- func (s *List) Size() (size int)
- func (s *List) Slice() []interface{}
- type Queue
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 ListFromSlise ¶
func ListFromSlise(sl []interface{}) *List
func (*List) PushBackIfNotExists ¶
func (*List) PushFrontIfNotExists ¶
Click to show internal directories.
Click to hide internal directories.