Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 38 lines (33 sloc) 1.312 kb
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 27 28 29 30 31 32 33 34 35 36 37
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2011, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// GENERATED CODE: DO NOT EDIT.
// genprod generated these sources at: Thu Apr 14 13:08:25 PDT 2011

package scala


/** A function of 0 parameters.
*
* In the following example, the definition of javaVersion is a
* shorthand for the anonymous class definition anonfun0:
*
* {{{
* object Main extends Application {
* val javaVersion = () => sys.props("java.version")
*
* val anonfun0 = new Function0[String] {
* def apply(): String = sys.props("java.version")
* }
* assert(javaVersion() == anonfun0())
* }
* }}}
*/
trait Function0[@specialized +R] extends AnyRef { self =>
  /** Apply the body of this function to the arguments.
* @return the result of function application.
*/
  def apply(): R

  override def toString() = "<function0>"
}
Something went wrong with that request. Please try again.