|
Scala
1.4.0.3 |
|||
PartialFunction[A, B]
is a
unary function where the domain does not include all values of type
A
. The function isDefinedAt
allows to
test dynamically, if a value is in the domain of the function.
Method Summary | |
abstract
|
def isDefinedAt(x: A): Boolean
Checks if a value is contained in the functions domain. |
Methods inherited from java/lang/Object-class |
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Function1-class |
apply |
Methods inherited from scala/ScalaObject-class |
getScalaType |
Method Detail |
abstract def isDefinedAt(x: A): Boolean
x
-
the value to test
x
is in the domain of this function.
|
Scala
1.4.0.3 |
|||