|
|
Scala 2.2.0.9025
|
abstract
trait
Function1
[T0, R]
extends
java.lang.Object with
scala.ScalaObjectsucc is a shorthand for the anonymous class definition
anonfun1:
object Main extends Application {
val succ = (x: Int) => x + 1
val anonfun1 = new Function1[Int, Int] {
def apply(x: Int): Int = x + 1
}
Console.println(succ(0))
Console.println(anonfun1(0))
}| Def Summary | |
abstract
|
def
apply
(v0: T0)
: R
|
def
compose
[A]
(g: scala.Function1[A, T0])
: scala.Function1[A, R]
|
|
override
|
def
toString
: java.lang.String
|
| Def Detail |
abstract
def
apply
(v0: T0): R
def
compose
[A](g: scala.Function1[A, T0]): scala.Function1[A, R]
override
def
toString
: java.lang.String