/* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2009, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ // $Id$ // generated by genprod on Wed Jun 17 14:10:05 PDT 2009 (with fancy comment) package scala /**
* Function with 0 parameters. *
*
* In the following example the definition of
* currentSeconds
is a shorthand for the anonymous class
* definition anonfun0
:
*
* object Main extends Application { * * val currentSeconds = () => System.currentTimeMillis() / 1000L * * val anonfun0 = new Function0[Long] { * def apply(): Long = System.currentTimeMillis() / 1000L * } * * println(currentSeconds()) * println(anonfun0()) * }*/ trait Function0[+R] extends AnyRef { self => def apply(): R override def toString() = "