Documentation
¶
Index ¶
- type DoublyLinkedList
- func (dll *DoublyLinkedList) Append(data interface{})
- func (dll *DoublyLinkedList) Clear()
- func (dll *DoublyLinkedList) DeleteAny(data interface{})
- func (dll *DoublyLinkedList) DeleteHead()
- func (dll *DoublyLinkedList) DeleteTail()
- func (dll *DoublyLinkedList) Find(data interface{}) *Node
- func (dll *DoublyLinkedList) InsertBetween(data interface{}, after interface{})
- func (dll *DoublyLinkedList) Prepend(data interface{})
- func (dll *DoublyLinkedList) PrintList()
- func (dll *DoublyLinkedList) Reverse()
- func (dll *DoublyLinkedList) Size() int
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoublyLinkedList ¶
type DoublyLinkedList struct {
// contains filtered or unexported fields
}
func NewDoublyLinkedList ¶
func NewDoublyLinkedList() *DoublyLinkedList
func (*DoublyLinkedList) Append ¶
func (dll *DoublyLinkedList) Append(data interface{})
func (*DoublyLinkedList) Clear ¶
func (dll *DoublyLinkedList) Clear()
func (*DoublyLinkedList) DeleteAny ¶
func (dll *DoublyLinkedList) DeleteAny(data interface{})
func (*DoublyLinkedList) DeleteHead ¶
func (dll *DoublyLinkedList) DeleteHead()
func (*DoublyLinkedList) DeleteTail ¶
func (dll *DoublyLinkedList) DeleteTail()
func (*DoublyLinkedList) Find ¶
func (dll *DoublyLinkedList) Find(data interface{}) *Node
func (*DoublyLinkedList) InsertBetween ¶
func (dll *DoublyLinkedList) InsertBetween(data interface{}, after interface{})
func (*DoublyLinkedList) Prepend ¶
func (dll *DoublyLinkedList) Prepend(data interface{})
func (*DoublyLinkedList) PrintList ¶
func (dll *DoublyLinkedList) PrintList()
func (*DoublyLinkedList) Reverse ¶
func (dll *DoublyLinkedList) Reverse()
func (*DoublyLinkedList) Size ¶
func (dll *DoublyLinkedList) Size() int
Click to show internal directories.
Click to hide internal directories.