You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert(h { case (a: Double, b: Double) =>42:Int } ==2)
47
+
48
+
valxs=newSortedMap
49
+
assert(xs.collectF { kv =>1 } ==0)
50
+
assert(xs.collectF { case (k, v) =>1 } ==0)
51
+
assert(xs.collectF { case (k, v) => (1, 1) } ==2)
52
+
assert(xs.collect { case (k, v) =>1 } ==0)
53
+
assert(xs.collect { case (k, v) => (1, 1) } ==1)
54
+
55
+
valys=newSortedMapMixed
56
+
assert(ys.collect { kv =>1 } ==0)
57
+
assert(ys.collect { kv => (1, 1) } ==0)
58
+
assert(ys.collect { case (k, v) =>1 } ==1) // could be 0 with the extra work in https://github.com/scala/scala/pull/5975/commits/3c95dac0dcbb0c8eb4686264026ad9c86b2022de
0 commit comments