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