Documentation
¶
Index ¶
- type DoublyLinkedList
- func (l *DoublyLinkedList[T]) AddEnd(data T) (newNode *Node[T])
- func (l *DoublyLinkedList[T]) AddFront(data T) (newNode *Node[T])
- func (l *DoublyLinkedList[T]) Len() int
- func (l *DoublyLinkedList[T]) MoveNodeToFront(node *Node[T])
- func (l *DoublyLinkedList[T]) Remove(node *Node[T])
- func (l *DoublyLinkedList[T]) RemoveLast() (removedNode *Node[T])
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoublyLinkedList ¶
type DoublyLinkedList[T any] struct { // contains filtered or unexported fields }
func NewDoublyLinkedList ¶
func NewDoublyLinkedList[T any]() DoublyLinkedList[T]
func (*DoublyLinkedList[T]) AddEnd ¶
func (l *DoublyLinkedList[T]) AddEnd(data T) (newNode *Node[T])
func (*DoublyLinkedList[T]) AddFront ¶
func (l *DoublyLinkedList[T]) AddFront(data T) (newNode *Node[T])
func (*DoublyLinkedList[T]) Len ¶
func (l *DoublyLinkedList[T]) Len() int
func (*DoublyLinkedList[T]) MoveNodeToFront ¶
func (l *DoublyLinkedList[T]) MoveNodeToFront(node *Node[T])
func (*DoublyLinkedList[T]) Remove ¶
func (l *DoublyLinkedList[T]) Remove(node *Node[T])
func (*DoublyLinkedList[T]) RemoveLast ¶
func (l *DoublyLinkedList[T]) RemoveLast() (removedNode *Node[T])
Click to show internal directories.
Click to hide internal directories.