export type Predicate = (x: T) => boolean; export type Relation = (x: T, y: U) => boolean; export type EndoRelation = Relation;