ordered

package
v0.0.0-...-0e61b49 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 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 LessThan

type LessThan[A any] interface {
	LessThan(A, A) bool
}

type MinMax

type MinMax[A any] struct {
	Less LessThan[A]
}

func PreludeMinMax

func PreludeMinMax[A constraints.Ordered]() *MinMax[A]

func (MinMax[A]) Make

func (MinMax[A]) Make(less LessThan[A]) *MinMax[A]

func (*MinMax[A]) Max

func (self *MinMax[A]) Max(a, b A) A

func (*MinMax[A]) Min

func (self *MinMax[A]) Min(a, b A) A

type PreludeLessThan

type PreludeLessThan[A constraints.Ordered] struct{}

func (*PreludeLessThan[A]) LessThan

func (prelude *PreludeLessThan[A]) LessThan(a, b A) bool

Jump to

Keyboard shortcuts

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