blob: 8da9829b78c4d5c4a467bffa722881d27b42b5f7 (
plain) (
tree)
|
|
Type in expressions to have them evaluated.
Type :help for more information.
scala>
scala> def h()(i: Int) = 1 + i
h: ()(i: Int)Int
scala> println(h()(5))
6
scala> val f = h() _
f: Int => Int = <function1>
scala> println(f(10))
11
scala>
scala>
|