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)
Click to show internal directories.
Click to hide internal directories.