scala

trait ByNameFunction

[source: scala/ByNameFunction.scala]

trait ByNameFunction[-A, +B]
extends AnyRef
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
Method Summary
abstract def apply (x : => A) : B
override def toString : java.lang.String
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def apply(x : => A) : B

override def toString : java.lang.String