Documentation
¶
Index ¶
- type List
- func (l *List[T]) All() iter.Seq2[int, T]
- func (l *List[T]) Append(data T)
- func (l *List[T]) AppendAfter(data T, node *Node[T])
- func (l *List[T]) AppendAt(data T, index int) error
- func (l *List[T]) AppendBefore(data T, node *Node[T])
- func (l *List[T]) AppendSlice(slice []T)
- func (l *List[T]) AppendSliceAt(slice []T, index int) error
- func (l *List[T]) Backward() iter.Seq2[int, T]
- func (l *List[T]) DeleteFunc(data T, eq func(a, b T) bool) error
- func (l *List[T]) DeleteIndex(index int) error
- func (l *List[T]) DeleteNode(node *Node[T])
- func (l *List[T]) Get(index int) (T, error)
- func (l *List[T]) Head() *Node[T]
- func (l *List[T]) IndexFunc(data T, eq func(T, T) bool) (int, error)
- func (l *List[T]) Set(data T, index int) error
- func (l *List[T]) Size() int
- func (l *List[T]) SortFunc(cmp func(a, b T) int)
- func (l *List[T]) Tail() *Node[T]
- func (l *List[T]) ToSlice() []T
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List[T any] struct { // contains filtered or unexported fields }
func (*List[T]) AppendAfter ¶
func (*List[T]) AppendBefore ¶
func (*List[T]) AppendSlice ¶
func (l *List[T]) AppendSlice(slice []T)
func (*List[T]) AppendSliceAt ¶
func (*List[T]) DeleteFunc ¶
func (*List[T]) DeleteIndex ¶
func (*List[T]) DeleteNode ¶
Click to show internal directories.
Click to hide internal directories.