Predicate<T> typedef
Predicate<T> =
bool Function(T)
A type alias representing a predicate function that takes a value of type T
and returns a boolean value.
Used for filtering and testing conditions on elements.
Example:
Predicate<int> isEven = (int n) => n % 2 == 0;
Implementation
typedef Predicate<T> = bool Function(T);