contracts

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterMapper

type FilterMapper[T any, U any] func(T) (U, bool)

FilterMapper converts one value into another value and reports whether to keep it.

type Keyer

type Keyer[T any, K comparable] func(T) (K, bool)

Keyer derives an accepted comparable key for indexing a value.

type Mapper

type Mapper[T any, U any] func(T) U

Mapper converts one value into another value.

type Predicate

type Predicate[T any] func(T) bool

Predicate reports whether value should be accepted.

Jump to

Keyboard shortcuts

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