lazyhead

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Sorted sortState = iota
	UnsortedTail
	UnsortedAll
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HeadedLazySortedList

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

func NewHeadedLazySortedList

func NewHeadedLazySortedList(headLen int, less LessFunc, capacity int) HeadedLazySortedList

func (*HeadedLazySortedList) Add

func (r *HeadedLazySortedList) Add(item interface{})

func (*HeadedLazySortedList) CutOffHead

func (r *HeadedLazySortedList) CutOffHead(headLenReduction int) []interface{}

func (*HeadedLazySortedList) CutOffHeadByLen

func (r *HeadedLazySortedList) CutOffHeadByLen(headLen int) []interface{}

func (*HeadedLazySortedList) CutOffHeadByLenInto

func (r *HeadedLazySortedList) CutOffHeadByLenInto(headCutLen int, to []interface{}) []interface{}

func (*HeadedLazySortedList) CutOffHeadInto

func (r *HeadedLazySortedList) CutOffHeadInto(headLenReduction int, to []interface{}) []interface{}

func (*HeadedLazySortedList) Flush

func (r *HeadedLazySortedList) Flush() []interface{}

func (*HeadedLazySortedList) Get

func (r *HeadedLazySortedList) Get(index int) interface{}

func (*HeadedLazySortedList) GetAvailableHeadLen

func (r *HeadedLazySortedList) GetAvailableHeadLen(headLenReduction int) int

func (*HeadedLazySortedList) GetHeadLen

func (r *HeadedLazySortedList) GetHeadLen() int

func (*HeadedLazySortedList) GetReversedHead

func (r *HeadedLazySortedList) GetReversedHead(relIndex int) interface{}

func (*HeadedLazySortedList) HasFullHead

func (r *HeadedLazySortedList) HasFullHead(headLenReduction int) bool

func (*HeadedLazySortedList) Len

func (r *HeadedLazySortedList) Len() int

func (*HeadedLazySortedList) SortAll

func (r *HeadedLazySortedList) SortAll()

type LessFunc

type LessFunc func(v1, v2 interface{}) bool

Jump to

Keyboard shortcuts

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