predicate library
Functions
-
and<A>(Predicate<A> first)
→ Predicate<A> Function(Predicate<A> )
-
Creates a new predicate that is the logical conjunction of two given predicates.
-
contramap<B, A>(A f(B))
→ Predicate<B> Function(Predicate<A> )
-
Transforms a predicate using a function.
-
match<A, B>(B onFalse(A value), B onTrue(A value))
→ B Function(A) Function(Predicate<A> )
-
Matches a value against a predicate and returns a function.
-
not<A>(Predicate<A> predicate)
→ Predicate<A>
-
Creates a new predicate that is the logical negation of a given predicate.
-
or<A>(Predicate<A> first)
→ Predicate<A> Function(Predicate<A> )
-
Creates a new predicate that is the logical disjunction of two given predicates.
Typedefs
-
Predicate<A>
= bool Function(A value)
-
Defines a function that takes a value of type A and returns a boolean.