def f(x:Int, y:Int)= x+y //> f: (x: Int, y: Int)Int
def operate(f: (Int, Int)=>Int)={
f(4, 4)
} //> operate: (f: (Int, Int) => Int)Int
operate(f) //> res0: Int = 8
def operate(f: (Int, Int)=>Int)={
f(4, 4)
} //> operate: (f: (Int, Int) => Int)Int
operate(f) //> res0: Int = 8
2017-01-16