predicate

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And[A any](second func(A) bool) func(func(A) bool) func(A) bool

And creates a predicate that combines other predicates via &&

func ContraMap

func ContraMap[A, B any](f func(B) A) func(func(A) bool) func(B) bool

ContraMap creates a predicate from an existing predicate given a mapping function

func MonoidAll

func MonoidAll[A any](predicate func(A) bool) S.Semigroup[func(A) bool]

MonoidAll combines predicates via &&

func MonoidAny

func MonoidAny[A any](predicate func(A) bool) S.Semigroup[func(A) bool]

MonoidAny combines predicates via ||

func Not

func Not[A any](predicate func(A) bool) func(A) bool

func Or

func Or[A any](second func(A) bool) func(func(A) bool) func(A) bool

Or creates a predicate that combines other predicates via ||

func SemigroupAll

func SemigroupAll[A any](predicate func(A) bool) S.Semigroup[func(A) bool]

SemigroupAll combines predicates via &&

func SemigroupAny

func SemigroupAny[A any](predicate func(A) bool) S.Semigroup[func(A) bool]

SemigroupAny combines predicates via ||

Types

This section is empty.

Jump to

Keyboard shortcuts

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