comparer

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package comparer provides builders of slices.CompareFunc comparsion functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Of

func Of[T any, O constraints.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 constraints.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