diff options
author | Matthias Zenger <mzenger@gmail.com> | 2003-08-31 22:57:22 +0000 |
---|---|---|
committer | Matthias Zenger <mzenger@gmail.com> | 2003-08-31 22:57:22 +0000 |
commit | 8ac36547ea50936a87963dfc2ac8d2da6771c76f (patch) | |
tree | e7f5d40afe3eda9db64d2cb30ae8a8c6152e8e8f /sources/scala/PartialFunction.scala | |
parent | 325b15e759799b5d5da72f00606e7d7875c211d8 (diff) | |
download | scala-8ac36547ea50936a87963dfc2ac8d2da6771c76f.tar.gz scala-8ac36547ea50936a87963dfc2ac8d2da6771c76f.tar.bz2 scala-8ac36547ea50936a87963dfc2ac8d2da6771c76f.zip |
Added more comments, removed StructuralEquality...
Added more comments, removed StructuralEquality trait.
Diffstat (limited to 'sources/scala/PartialFunction.scala')
-rw-r--r-- | sources/scala/PartialFunction.scala | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/sources/scala/PartialFunction.scala b/sources/scala/PartialFunction.scala index 2d72625b76..69adb778b6 100644 --- a/sources/scala/PartialFunction.scala +++ b/sources/scala/PartialFunction.scala @@ -4,30 +4,26 @@ ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** +** $Id$ \* */ -// $Id$ - package scala; -/** - * A partial function of type <code>PartialFunction[A, B]</code> is a - * unary function where the domain does not include all values of type - * <code>A</code>. The function <code>isDefinedAt</code> allows to - * test dynamically, if a value is in the domain of the function. +/** A partial function of type <code>PartialFunction[A, B]</code> is a + * unary function where the domain does not include all values of type + * <code>A</code>. The function <code>isDefinedAt</code> allows to + * test dynamically, if a value is in the domain of the function. * - * @author Martin Odersky - * @version 1.0, 16/07/2003 + * @author Martin Odersky + * @version 1.0, 16/07/2003 */ trait PartialFunction[-A, +B] with Function1[A, B] { - /** - * Checks if a value is contained in the functions domain. + /** Checks if a value is contained in the functions domain. * - * @param x the value to test - * @return true, iff <code>x</code> is in the domain of this function. + * @param x the value to test + * @return true, iff <code>x</code> is in the domain of this function. */ def isDefinedAt(x: A): Boolean; - } |