blob: 8e2f35944b23cce3dee5adfe5996540fa064b2a5 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2010, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// generated by genprod on Sat Oct 16 11:19:09 PDT 2010 (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[@specialized +R] extends AnyRef { self =>
def apply(): R
override def toString() = "<function0>"
}
|