We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5144fa commit f40da43Copy full SHA for f40da43
tests/run/boehm-berarducci.check
@@ -0,0 +1,8 @@
1
+List(1, 2)
2
+List(2)
3
+1
4
+false
5
6
7
8
tests/run/boehm-berarducci.scala
@@ -68,7 +68,7 @@ object ListOps2 extends ListOps:
68
69
def fst[T](v: ListView[T]): T = v(hd => tl => hd)(() => ???)
70
def snd[T](v: ListView[T]): List[T] = v(hd => tl => tl)(() => ???)
71
- def isPair[T](v: ListView[T]): Boolean = v(hd => tl => false)(() => true)
+ def isPair[T](v: ListView[T]): Boolean = v(hd => tl => true)(() => false)
72
73
@main def Test() =
74
ListOps1.test()
0 commit comments