Documentation
¶
Index ¶
- type DLL
- func (d *DLL[T]) Head() *Node[T]
- func (d *DLL[T]) InsertAfter(val T, n *Node[T]) error
- func (d *DLL[T]) InsertBefore(val T, n *Node[T]) error
- func (d *DLL[T]) InsertNodeAfter(newN, n *Node[T]) error
- func (d *DLL[T]) InsertNodeBefore(newN, n *Node[T]) error
- func (d *DLL[T]) Len() int64
- func (d *DLL[T]) PeekHead() (T, error)
- func (d *DLL[T]) PeekHeadN(n int64) (T, error)
- func (d *DLL[T]) PeekHeadNode() *Node[T]
- func (d *DLL[T]) PeekTail() (T, error)
- func (d *DLL[T]) PeekTailN(n int64) (T, error)
- func (d *DLL[T]) PeekTailNode() *Node[T]
- func (d *DLL[T]) PopHead() (T, error)
- func (d *DLL[T]) PopTail() (T, error)
- func (d *DLL[T]) PushHead(val T)
- func (d *DLL[T]) PushTail(val T)
- func (d *DLL[T]) String() string
- func (d *DLL[T]) Tail() *Node[T]
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DLL ¶
type DLL[T any] struct { // contains filtered or unexported fields }
cycles not supported
func (*DLL[T]) InsertAfter ¶
func (*DLL[T]) InsertBefore ¶
func (*DLL[T]) InsertNodeAfter ¶
func (*DLL[T]) InsertNodeBefore ¶
func (*DLL[T]) PeekHeadNode ¶
func (*DLL[T]) PeekTailNode ¶
type Node ¶
type Node[T any] struct { // contains filtered or unexported fields }
func (*Node[T]) HeadIndexIn ¶
TODO: do these two need refactoring?
func (*Node[T]) RemoveFrom ¶
Click to show internal directories.
Click to hide internal directories.