Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoubleLink ¶
type DoubleLink[T constraints.Ordered] struct { Value T Previous *DoubleLink[T] Next *DoubleLink[T] }
func NewDoubleLink ¶
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 ¶
type SingleLink[T constraints.Ordered] struct { Value T Next *SingleLink[T] }
func NewSingleLink ¶
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]
Click to show internal directories.
Click to hide internal directories.