export type Predicate = (a: T) => boolean; export type Relation = (a: T, b: U) => boolean; export type EndoRelation = Relation;