utility

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 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 Compare

type Compare[T any] interface {
	Cmp(T, T) bool
}

type Greater

type Greater[T constraints.Ordered] struct{}

func (*Greater[T]) Cmp

func (g *Greater[T]) Cmp(lhs T, rhs T) bool

type Less

type Less[T constraints.Ordered] struct{}

func (*Less[T]) Cmp

func (l *Less[T]) Cmp(lhs T, rhs T) bool

type Pair

type Pair[T1 any, T2 any] struct {
	First  T1
	Second T2
}

func MakePair

func MakePair[T1 any, T2 any](first T1, second T2) *Pair[T1, T2]

Jump to

Keyboard shortcuts

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