windows需要配置環境路勁,就相當于你需要告訴計算機你的Scala安裝在哪,在計算機屬性里面高級設置里面,具體可以度娘Scala windows 安裝環境變量配置
2017-02-19
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