heap

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExcludableHeap

type ExcludableHeap[T any] struct {
	*typeparamcommon.HeapWrapper[T]
	// contains filtered or unexported fields
}

func NewHeap

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

func NewNumber

func NewNumber[T constraints.Ordered]() *ExcludableHeap[T]

func (*ExcludableHeap[T]) Exclude

func (exh *ExcludableHeap[T]) Exclude(filter func(ent T) bool, start, end int) (removed []T)

func (*ExcludableHeap[T]) Len

func (exh *ExcludableHeap[T]) Len() int

func (*ExcludableHeap[T]) Peek

func (h *ExcludableHeap[T]) Peek() (p T)

Jump to

Keyboard shortcuts

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