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 beccb5e commit 01879d8Copy full SHA for 01879d8
README.md
@@ -28,7 +28,7 @@ val f: Int => Option[String] = { i =>
28
}
29
30
// Convert an optional function to a PartialFunction
31
-val pf2: PartialFunction[Int, String] = f.unlift
+val pf2: PartialFunction[Int, String] = Function.unlift(f)
32
33
util.Random.nextInt(4) match {
34
case pf.extract(m) => // Convert a PartialFunction to a pattern
0 commit comments