comparer

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package comparer provides builders of slices.CompareFunc comparison functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Of

func Of[T any, O cmp.Ordered](converter func(T) O) func(T, T) int

Of creates a comparer for orderable values obtained by the converter

func Reverse

func Reverse[T any, O cmp.Ordered](converter func(T) O) func(T, T) int

Reverse creates a descending comparer for orderable values obtained by the converter

Types

This section is empty.

Jump to

Keyboard shortcuts

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