예제 #1
0
파일: Comparable.cs 프로젝트: ArnasJ/tlplib
 public static A max <A>(this A a1, A a2, Comparable <A> cmp) => cmp.max(a1, a2);
예제 #2
0
 public void TestMax()
 {
     cmp.max(1, 2).shouldEqual(2);
     cmp.max(2, 1).shouldEqual(2);
 }