blob: 1540602e5b8b30d1c080995606cca6e60ef3458d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $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.
*
* @author Martin Odersky
* @version 1.0, 16/07/2003
*/
trait ByNameFunction[-A, +B] extends AnyRef {
def apply(x: => A): B
override def toString() = "<function>"
}
|