summaryrefslogtreecommitdiff
path: root/14-the-scala-standard-library.md
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-03-12 16:46:59 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-03-12 16:46:59 -0700
commitaa641871a9807f6f80675cb4d65fb70534119268 (patch)
treec1518fced6447073899caf296500cf6fe125bb14 /14-the-scala-standard-library.md
parent4615ec5446643ad8dc3549c1e9c6deb102d2ff7a (diff)
downloadscala-aa641871a9807f6f80675cb4d65fb70534119268.tar.gz
scala-aa641871a9807f6f80675cb4d65fb70534119268.tar.bz2
scala-aa641871a9807f6f80675cb4d65fb70534119268.zip
SI-5370 PartialFunction is a Function with queryable domain
Diffstat (limited to '14-the-scala-standard-library.md')
-rw-r--r--14-the-scala-standard-library.md7
1 files changed, 2 insertions, 5 deletions
diff --git a/14-the-scala-standard-library.md b/14-the-scala-standard-library.md
index 5b408cff61..9b39d93ff1 100644
--- a/14-the-scala-standard-library.md
+++ b/14-the-scala-standard-library.md
@@ -378,11 +378,8 @@ trait Function$n$[-T_1, ..., -T_$n$, +R] {
}
```
-A subclass of `Function1` represents partial functions,
-which are undefined on some points in their domain. In addition to the
-`apply` method of functions, partial functions also have a
-`isDefined` method, which tells whether the function is defined
-at the given argument:
+The `PartialFunction` subclass of `Function1` represents functions that (indirectly) specify their domain.
+Use the `isDefined` method to query whether the partial function is defined for a given input (i.e., whether the input is part of the function's domain).
```
class PartialFunction[-A, +B] extends Function1[A, B] {