function

package
v0.0.0-...-4be1849 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryOperator

type BinaryOperator[T any] func(a, b T) T

type Comparator

type Comparator[T any] func(a, b T) int

func (Comparator[T]) AndThen

func (c Comparator[T]) AndThen(other Comparator[T]) Comparator[T]

func (Comparator[T]) Reversed

func (c Comparator[T]) Reversed() Comparator[T]

type Consumer

type Consumer[T any] func(T)

func (Consumer[T]) AndThen

func (c Consumer[T]) AndThen(after Consumer[T]) Consumer[T]

type Function

type Function[T, R any] func(T) R

type Predicate

type Predicate[T any] func(T) bool

func PredicateIsSame

func PredicateIsSame[T comparable](reference T) Predicate[T]

func (Predicate[T]) And

func (p Predicate[T]) And(other Predicate[T]) Predicate[T]

func (Predicate[T]) Negate

func (p Predicate[T]) Negate() Predicate[T]

func (Predicate[T]) Or

func (p Predicate[T]) Or(other Predicate[T]) Predicate[T]

Jump to

Keyboard shortcuts

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