comparator

package
v0.0.0-...-9328dc9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparator

type Comparator[T any] interface {
	Less(a, b T) bool // returns true if a < b, false otherwise
}

type Greater

type Greater[T cmp.Ordered] struct{}

func (Greater[T]) Less

func (l Greater[T]) Less(a, b T) bool

type Less

type Less[T cmp.Ordered] struct{}

Predefined comparators

func (Less[T]) Less

func (l Less[T]) Less(a, b T) bool

Jump to

Keyboard shortcuts

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