package
Version:
v1.0.152
Opens a new window with list of versions in this module.
Published: Mar 5, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Contramap[A, B any](f func(b B) A) func(Eq[A]) Eq[B]
Contramap implements an Equals predicate based on a mapping
func Equals[T any](eq Eq[T]) func(T) func(T) bool
Equals returns a predicate to test if one value equals the other under an equals predicate
type Eq[T any] interface {
Equals(x, y T) bool
}
func Empty[T any]() Eq[T]
Empty returns the equals predicate that is always true
func FromEquals[T any](c func(x, y T) bool) Eq[T]
FromEquals constructs an [EQ.Eq] from the comparison function
FromStrictEquals constructs an [EQ.Eq] from the canonical comparison function
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.