sort

package
v0.0.0-...-58bfa04 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstUnusedInRange

func FirstUnusedInRange(used []int32, lower, upper int32) int32

FirstUnusedInRange finds and returns the first unused value in an ascendingly sorted range, or -1 if it is fully populated

Types

type Int32Slice

type Int32Slice []int32

Int32Slice attaches the methods of Interface to []int32, sorting in increasing order.

func (Int32Slice) Len

func (p Int32Slice) Len() int

func (Int32Slice) Less

func (p Int32Slice) Less(i, j int) bool

func (Int32Slice) Sort

func (p Int32Slice) Sort()

func (Int32Slice) Swap

func (p Int32Slice) Swap(i, j int)

Jump to

Keyboard shortcuts

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