Predicate

typealias Predicate<T> = (it: T) -> Boolean

Predicate

Predicate is a lambda function expecting a Boolean result given an instance of T as it.

Shorthand for:

(it: T) -> Boolean