move function

This commit is contained in:
Joeri Exelmans 2025-04-20 11:30:28 +02:00
parent c1ac3c0d60
commit e04cac4f7d
3 changed files with 10 additions and 9 deletions

7
compare/type.js Normal file
View file

@ -0,0 +1,7 @@
import { getParams, getSymbol } from "../type_constructor.js";
import { compareSymbols } from "./primitives.js";
import { compareLists } from "./structures.js";
export const compareTypes = x => y =>
compareSymbols(getSymbol(x))(getSymbol(y))
|| compareLists(compareTypes)(getParams(x))(getParams(y));