Documentation
¶
Index ¶
- type Element
- type Ordered
- type SortedLinkedList
- func (l *SortedLinkedList[T]) Back() (T, error)
- func (l *SortedLinkedList[T]) Front() (T, error)
- func (l *SortedLinkedList[T]) Get(index int) (T, error)
- func (l *SortedLinkedList[T]) Init()
- func (l *SortedLinkedList[T]) Insert(value T)
- func (l *SortedLinkedList[T]) InsertAll(value ...T) error
- func (l *SortedLinkedList[T]) IsEmpty() bool
- func (l *SortedLinkedList[T]) Iterate() iter.Seq2[int, T]
- func (l *SortedLinkedList[T]) Len() int
- func (l *SortedLinkedList[T]) RemoveBack() error
- func (l *SortedLinkedList[T]) RemoveFront() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortedLinkedList ¶
type SortedLinkedList[T Ordered] struct { // contains filtered or unexported fields }
func New ¶
func New[T Ordered]() *SortedLinkedList[T]
func (*SortedLinkedList[T]) Back ¶
func (l *SortedLinkedList[T]) Back() (T, error)
func (*SortedLinkedList[T]) Front ¶
func (l *SortedLinkedList[T]) Front() (T, error)
func (*SortedLinkedList[T]) Get ¶
func (l *SortedLinkedList[T]) Get(index int) (T, error)
func (*SortedLinkedList[T]) Init ¶
func (l *SortedLinkedList[T]) Init()
func (*SortedLinkedList[T]) Insert ¶
func (l *SortedLinkedList[T]) Insert(value T)
func (*SortedLinkedList[T]) InsertAll ¶
func (l *SortedLinkedList[T]) InsertAll(value ...T) error
func (*SortedLinkedList[T]) IsEmpty ¶
func (l *SortedLinkedList[T]) IsEmpty() bool
func (*SortedLinkedList[T]) Len ¶
func (l *SortedLinkedList[T]) Len() int
func (*SortedLinkedList[T]) RemoveBack ¶
func (l *SortedLinkedList[T]) RemoveBack() error
func (*SortedLinkedList[T]) RemoveFront ¶
func (l *SortedLinkedList[T]) RemoveFront() error
Click to show internal directories.
Click to hide internal directories.