Documentation ¶
Index ¶
- type HashList
- type List
- func (l *List[T]) Filter(fn func(*T) int) []*T
- func (l *List[T]) Get(n *T) *T
- func (l *List[T]) GetNodes() []*T
- func (l *List[T]) GoString() string
- func (l *List[T]) InsertHead(data *T) error
- func (l *List[T]) InsertOrdered(data *T) error
- func (l *List[T]) InsertTail(data *T)
- func (l *List[T]) Len() int
- func (l *List[T]) String() string
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashList ¶
type HashList[V comparable, K Node[K]] struct { Description string // contains filtered or unexported fields }
func NewHashList ¶
func NewHashList[V comparable, K Node[K]](description string, hf func(*K) V, of func(*K, *K) int) *HashList[V, K]
type List ¶
type List[T Node[T]] struct { Head linkNode[T] Tail linkNode[T] Description string OrderFunc func(*T, *T) int }
func (*List[T]) InsertHead ¶
func (*List[T]) InsertOrdered ¶
func (*List[T]) InsertTail ¶
func (l *List[T]) InsertTail(data *T)
Click to show internal directories.
Click to hide internal directories.