示例#1
0
 public static A max <A>(this Comparable <A> cmp, A a1, A a2) => cmp.gt(a1, a2) ? a1 : a2;
示例#2
0
 public void TestOpGt()
 {
     cmp.gt(1, 2).shouldBeFalse();
     cmp.gt(2, 1).shouldBeTrue();
 }