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]) IsEmpty() bool
- 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 List
- type Node
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 NewLinkedList ¶
func NewLinkedList[T comparable]() *LinkedList[T]
func (*LinkedList[T]) String ¶
func (list *LinkedList[T]) String() string
type List ¶
type List[T comparable] struct { // contains filtered or unexported fields }
type Node ¶
type Node[T comparable] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.