skiplist

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SkipList

type SkipList[T constraints.Ordered] interface {
	Add(T)
	// Removes and returns true if exists, no-op and returns false otherwise
	Remove(T) bool
	Search(T) bool

	ToSlice() []T
}

func NewSkipList

func NewSkipList[T constraints.Ordered](minVal, maxVal T) SkipList[T]

Jump to

Keyboard shortcuts

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