diff options
author | Pavel Pavlov <pavel.e.pavlov@gmail.com> | 2012-08-21 01:40:14 +0700 |
---|---|---|
committer | Pavel Pavlov <pavel.e.pavlov@gmail.com> | 2012-08-23 15:37:28 +0700 |
commit | 42c6fb8ce814ed109f6418bcc5809d23e1db1965 (patch) | |
tree | 41dae80febf880c1c85fc4c5154de1984ea12dbe /src/library/scala/Function.scala | |
parent | 1a1678dac0d4ff7d08efffbe2c80f324c173a69e (diff) | |
download | scala-42c6fb8ce814ed109f6418bcc5809d23e1db1965.tar.gz scala-42c6fb8ce814ed109f6418bcc5809d23e1db1965.tar.bz2 scala-42c6fb8ce814ed109f6418bcc5809d23e1db1965.zip |
PartialFunction polishing
- ScalaDocs added
- TODOs fixed
- controversive method `run` deleted
- not used class runtime.AbstractTotalFunction removed
- small corrections & fixes
- tests for `orElse` & `runWith`
Diffstat (limited to 'src/library/scala/Function.scala')
-rw-r--r-- | src/library/scala/Function.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/Function.scala b/src/library/scala/Function.scala index 270581a3aa..d470f4c966 100644 --- a/src/library/scala/Function.scala +++ b/src/library/scala/Function.scala @@ -28,11 +28,11 @@ object Function { /** Turns a function `A => Option[B]` into a `PartialFunction[A, B]`. * - * TODO: check if the paragraph below is still correct * '''Important note''': this transformation implies the original function - * will be called 2 or more times on each logical invocation, because the + * may be called 2 or more times on each logical invocation, because the * only way to supply an implementation of `isDefinedAt` is to call the * function and examine the return value. + * See also [[scala.PartialFunction]], method `applyOrElse`. * * @param f a function `T => Option[R]` * @return a partial function defined for those inputs where |