in scala
trait PartialFunction

`abstract trait` 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

Direct Known Subclasses:
  MutableList, Map, Seq, RecursiveProxyHandler

Def Summary
`override` | `def` andThen [C] (k: (B) => C) : java.lang.Object with scala.PartialFunction[A,C]
`abstract` | `def` isDefinedAt (x: A) : scala.Boolean Checks if a value is contained in the functions domain.
| `def` orElse [A1 <: A, B1 >: B] (that: scala.PartialFunction[A1, B1]) : java.lang.Object with scala.PartialFunction[A1,B1]

Def inherited from (A) => B
andThen , apply, compose, toString

Def Detail

`override def` andThen [C](k: (B) => C): java.lang.Object with scala.PartialFunction[A,C]

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

  Checks if a value is contained in the functions domain.

Parameters:
  `x -` the value to test
Returns:
  true, iff `x` is in the domain of this function.

`def` orElse [A1 <: A, B1 >: B](that: scala.PartialFunction[A1, B1]): java.lang.Object with scala.PartialFunction[A1,B1]