1 2 3 4 5 6 7 8
scala> val n = 2 n: Int = 2 scala> () => n res0: () => Int = <function0> scala> :quit