Type in expressions to have them evaluated. Type :help for more information. scala> val n = 2 n: Int = 2 scala> () => n res0: () => Int = scala> :quit