heap

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHeap

func NewHeap[T any](less func(i, j T) bool) *gHeap[T]

func NewInterface

func NewInterface[T any](less func(i, j T) bool) *heapInterface[T]

func NewNumber

func NewNumber[T Number]() *gHeap[T]

Types

type Number

type Number interface {
	~int | ~int32 | ~int64 | ~float32 | ~float64
}

Jump to

Keyboard shortcuts

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