static final noeq record IntPair(int a, int b) implements Comparable { public boolean equals(Object o) { if (!o instanceof IntPair) false; IntPair x = cast o; return a == x.a && b == x.b; } public int hashCode() { int h = -672893111; h = boostHashCombine(h, _hashCode(a)); h = boostHashCombine(h, _hashCode(b)); return h; } public int compareTo(IntPair p) { if (p == null) ret 1; int pa = p.a; if (a < pa) ret -1; if (a > pa) ret 1; ret Int.compare(b, p.b); } }