list

package
v0.0.0-...-3c18875 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoubleLink[T constraints.Ordered] struct {
	Value    T
	Previous *DoubleLink[T]
	Next     *DoubleLink[T]
}
func NewDoubleLink[T constraints.Ordered](value T) *DoubleLink[T]

func (*DoubleLink[T]) Append

func (d *DoubleLink[T]) Append(x *DoubleLink[T]) *DoubleLink[T]

func (*DoubleLink[T]) Head

func (d *DoubleLink[T]) Head() *DoubleLink[T]

func (*DoubleLink[T]) Length

func (d *DoubleLink[T]) Length() int

func (*DoubleLink[T]) Prepend

func (d *DoubleLink[T]) Prepend(x *DoubleLink[T]) *DoubleLink[T]

func (*DoubleLink[T]) Splice

func (d *DoubleLink[T]) Splice()

func (*DoubleLink[T]) Tail

func (d *DoubleLink[T]) Tail() *DoubleLink[T]
type SingleLink[T constraints.Ordered] struct {
	Value T
	Next  *SingleLink[T]
}
func NewSingleLink[T constraints.Ordered](value T) *SingleLink[T]

func (*SingleLink[T]) Append

func (s *SingleLink[T]) Append(x *SingleLink[T]) *SingleLink[T]

func (*SingleLink[T]) Length

func (s *SingleLink[T]) Length() int

func (*SingleLink[T]) Prepend

func (s *SingleLink[T]) Prepend(x *SingleLink[T]) *SingleLink[T]

func (*SingleLink[T]) Splice

func (s *SingleLink[T]) Splice(prev *SingleLink[T])

func (*SingleLink[T]) Tail

func (s *SingleLink[T]) Tail() *SingleLink[T]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL