Documentation
¶
Index ¶
- type LinkedList
- func (list *LinkedList[T]) Add(item T)
- func (list *LinkedList[T]) AddAt(index int, item T)
- func (list *LinkedList[T]) Get(index int) T
- func (list *LinkedList[T]) Remove(index int) bool
- func (list *LinkedList[T]) Set(index int, item T)
- func (list *LinkedList[T]) Size() int
- func (list *LinkedList[T]) String() string
- type Node
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList[T comparable] struct { // contains filtered or unexported fields }
func NewDoubleLinkedList ¶
func NewDoubleLinkedList[T comparable]() *LinkedList[T]
func (*LinkedList[T]) String ¶
func (list *LinkedList[T]) String() string
type Node ¶
type Node[T comparable] struct { // contains filtered or unexported fields }
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.