priority

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slice

type Slice[T int | float64, U any] struct {
	// contains filtered or unexported fields
}

func (*Slice[T, U]) Append

func (s *Slice[T, U]) Append(priority T, item U)

func (*Slice[_, _]) Len

func (s *Slice[_, _]) Len() int

func (*Slice[_, _]) Less

func (s *Slice[_, _]) Less(i int, j int) bool

func (*Slice[T, U]) Reverse

func (s *Slice[T, U]) Reverse() *Slice[T, U]

func (*Slice[T, U]) Sort

func (s *Slice[T, U]) Sort() *Slice[T, U]

func (*Slice[T, U]) Stable

func (s *Slice[T, U]) Stable() *Slice[T, U]

func (*Slice[_, _]) Swap

func (s *Slice[_, _]) Swap(i int, j int)

func (*Slice[_, U]) Underlying

func (s *Slice[_, U]) Underlying() []U

Jump to

Keyboard shortcuts

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