in scala
class PartialFunction

mixin abstract `class` PartialFunction [ A , B ]
  `extends` java.lang.Object
  `with` (A) => B
  `with` scala.ScalaObject

  A partial function of type `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.

author:
  Martin Odersky
version:
  1.0, 16/07/2003

Def Summary
| `def` isDefinedAt ( x : A ) : scala.Boolean Checks if a value is contained in the functions domain.

Def Detail

`def` isDefinedAt ( x : A ) : scala.Boolean

  Checks if a value is contained in the functions domain.

param:
  x the value to test
return:
  true, iff `x` is in the domain of this function.