blob: 8da9829b78c4d5c4a467bffa722881d27b42b5f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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>
|