I can use closure to define function like this:
def product(x: Int) = (y: Int) => x * y val productBy3 = product(3) println(productBy3(6)) // 18