selectionsort

package
v0.0.0-...-869d58c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert() bool

func Selectionsort

func Selectionsort(list Sortable)

Types

type List

type List struct {
	// contains filtered or unexported fields
}

func (*List) Compare

func (l *List) Compare(a, b int) bool

func (*List) Items

func (l *List) Items() []interface{}

func (*List) Swap

func (l *List) Swap(i, j int)

type Sortable

type Sortable interface {
	Items() []interface{}
	Compare(i, j int) bool
	Swap(i, j int)
}

Jump to

Keyboard shortcuts

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