Documentation
¶
Overview ¶
package listparam wraps doubly-linked list implemented in go programming langauge standard library, to accept type parameter.
Index ¶
- type Element
- type List
- func (l *List[T]) Back() *Element[T]
- func (l *List[T]) Front() *Element[T]
- func (l *List[T]) Init() *List[T]
- func (l *List[T]) InsertAfter(v T, mark *Element[T]) *Element[T]
- func (l *List[T]) InsertBefore(v T, mark *Element[T]) *Element[T]
- func (l *List[T]) Len() int
- func (l *List[T]) MoveAfter(e, mark *Element[T])
- func (l *List[T]) MoveBefore(e, mark *Element[T])
- func (l *List[T]) MoveToBack(e *Element[T])
- func (l *List[T]) MoveToFront(e *Element[T])
- func (l *List[T]) PushBack(v T) *Element[T]
- func (l *List[T]) PushBackList(other *List[T])
- func (l *List[T]) PushFront(v T) *Element[T]
- func (l *List[T]) PushFrontList(other *List[T])
- func (l *List[T]) Remove(e *Element[T]) (v T, removed bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element[T any] struct { // contains filtered or unexported fields }
type List ¶
type List[T any] struct { // contains filtered or unexported fields }
func (*List[T]) InsertAfter ¶
func (*List[T]) InsertBefore ¶
func (*List[T]) MoveBefore ¶
func (*List[T]) MoveToBack ¶
func (*List[T]) MoveToFront ¶
func (*List[T]) PushBackList ¶
func (*List[T]) PushFrontList ¶
Click to show internal directories.
Click to hide internal directories.