redblack

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package redblack provides a library for using a redblack tree. Based on code at: https://www.cs.auckland.ac.nz/software/AlgAnim/red_black.html This library is thread-safe.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int

type Int int

Int implements Key for the int type.

func (Int) LessThan

func (x Int) LessThan(i interface{}) bool

LessThan implements Key.LessThan.

type Key

type Key interface {
	// LessThan indicates that Key is less than LessThan(value).
	LessThan(interface{}) bool
}

Key provides a method for determine if a value is less than another value.

type String

type String int

String implements Key for the string type.

func (String) LessThan

func (x String) LessThan(i interface{}) bool

LessThan implements Key.LessThan.

Jump to

Keyboard shortcuts

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