blob: a0c87a47f43f51330b582afeacbea679a53fb15f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Type in expressions to have them evaluated.
Type :help for more information.
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>
|