Add relation types
This commit is contained in:
parent
6ef83d9c59
commit
78ec06bda3
2 changed files with 6 additions and 1 deletions
3
src/prelude/relation.ts
Normal file
3
src/prelude/relation.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export type Relation<T, U> = (x: T, y: U) => boolean;
|
||||
|
||||
export type EndoRelation<T> = Relation<T, T>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue