Documentation ¶ Index ¶ type List func New[T any]() *List[T] func (l *List[T]) First() (T, bool) func (l *List[T]) Head() *Node[T] func (l *List[T]) Last() (T, bool) func (l *List[T]) Len() uint func (l *List[T]) Pop() (T, bool) func (l *List[T]) Push(v T) func (l *List[T]) PushFront(v T) func (l *List[T]) Tail() *Node[T] type ListIface 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 New ¶ func New[T any]() *List[T] func (*List[T]) First ¶ func (l *List[T]) First() (T, bool) func (*List[T]) Head ¶ func (l *List[T]) Head() *Node[T] func (*List[T]) Last ¶ func (l *List[T]) Last() (T, bool) func (*List[T]) Len ¶ func (l *List[T]) Len() uint func (*List[T]) Pop ¶ func (l *List[T]) Pop() (T, bool) func (*List[T]) Push ¶ func (l *List[T]) Push(v T) func (*List[T]) PushFront ¶ added in v0.2.0 func (l *List[T]) PushFront(v T) func (*List[T]) Tail ¶ func (l *List[T]) Tail() *Node[T] type ListIface ¶ added in v0.2.0 type ListIface[T any] interface { First() (T, bool) Last() (T, bool) Pop() (T, bool) Push(v T) Len() uint } type Node ¶ type Node[T any] struct { Value T Next *Node[T] } Source Files ¶ View all Source files list.go Directories ¶ Show internal Expand all Path Synopsis linkedlist base skiplist ziplist Click to show internal directories. Click to hide internal directories.