Documentation
¶
Index ¶
- type LinkedList
- func (l *LinkedList[E]) Append(e E) bool
- func (l *LinkedList[E]) Clear()
- func (l *LinkedList[E]) First() E
- func (l *LinkedList[E]) Get(index int) E
- func (l *LinkedList[E]) IndexOf(e E) int
- func (l *LinkedList[E]) Insert(index int, e E)
- func (l *LinkedList[E]) Last() E
- func (l *LinkedList[E]) LastIndexOf(e E) int
- func (l *LinkedList[E]) Len() int
- func (l *LinkedList[E]) Prepend(e E) bool
- func (l *LinkedList[E]) Remove(e E) bool
- func (l *LinkedList[E]) RemoveAt(index int) E
- func (l *LinkedList[E]) RemoveFirst() E
- func (l *LinkedList[E]) RemoveLast() E
- func (l *LinkedList[E]) Set(index int, e E) E
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList[E any] struct { // contains filtered or unexported fields }
func NewLinkedList ¶
func NewLinkedList[E any]() *LinkedList[E]
func (*LinkedList[E]) Append ¶
func (l *LinkedList[E]) Append(e E) bool
func (*LinkedList[E]) Clear ¶
func (l *LinkedList[E]) Clear()
func (*LinkedList[E]) First ¶
func (l *LinkedList[E]) First() E
func (*LinkedList[E]) Get ¶
func (l *LinkedList[E]) Get(index int) E
func (*LinkedList[E]) IndexOf ¶
func (l *LinkedList[E]) IndexOf(e E) int
func (*LinkedList[E]) Insert ¶
func (l *LinkedList[E]) Insert(index int, e E)
func (*LinkedList[E]) Last ¶
func (l *LinkedList[E]) Last() E
func (*LinkedList[E]) LastIndexOf ¶
func (l *LinkedList[E]) LastIndexOf(e E) int
func (*LinkedList[E]) Len ¶
func (l *LinkedList[E]) Len() int
func (*LinkedList[E]) Prepend ¶
func (l *LinkedList[E]) Prepend(e E) bool
func (*LinkedList[E]) Remove ¶
func (l *LinkedList[E]) Remove(e E) bool
func (*LinkedList[E]) RemoveAt ¶
func (l *LinkedList[E]) RemoveAt(index int) E
func (*LinkedList[E]) RemoveFirst ¶
func (l *LinkedList[E]) RemoveFirst() E
func (*LinkedList[E]) RemoveLast ¶
func (l *LinkedList[E]) RemoveLast() E
func (*LinkedList[E]) Set ¶
func (l *LinkedList[E]) Set(index int, e E) E
Click to show internal directories.
Click to hide internal directories.