object Demo { def main(args: Array[String]) { var factor = 3 val multiplier = (i:Int) => i * factor println(multiplier(10)); } }