Documentation ¶
Index ¶
- type ContextPredicate
- func ContextAnd[T any](predicates ...ContextPredicate[T]) ContextPredicate[T]
- func ContextNot[T any](p ContextPredicate[T]) ContextPredicate[T]
- func ContextOr[T any](predicates ...ContextPredicate[T]) ContextPredicate[T]
- func ParallelAnd[T any](predicates ...ContextPredicate[T]) ContextPredicate[T]
- func ParallelOr[T any](predicates ...ContextPredicate[T]) ContextPredicate[T]
- type Predicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextPredicate ¶
ContextPredicate is a boolean function of a single argument and a context.
func ContextAnd ¶
func ContextAnd[T any](predicates ...ContextPredicate[T]) ContextPredicate[T]
ContextAnd returns a predicate that is true if and only if all of the given predicates are true.
func ContextNot ¶
func ContextNot[T any](p ContextPredicate[T]) ContextPredicate[T]
ContextNot returns the negation of the given predicate.
func ContextOr ¶
func ContextOr[T any](predicates ...ContextPredicate[T]) ContextPredicate[T]
ContextOr returns a predicate that is true if and only if at least one of the given predicates is true.
func ParallelAnd ¶
func ParallelAnd[T any](predicates ...ContextPredicate[T]) ContextPredicate[T]
ParallelAnd returns a predicate that is true if and only if all of the given predicates are true. The predicates are evaluated in parallel.
func ParallelOr ¶
func ParallelOr[T any](predicates ...ContextPredicate[T]) ContextPredicate[T]
ParallelOr returns a predicate that is true if and only if at least one of the given predicates is true. The predicates are evaluated in parallel.
Click to show internal directories.
Click to hide internal directories.