=>这符号其实是映射转化的意思,个人理解,可能不准确,
var increase = (x: Int) => x + 1
increase(10)
res0: Int = 11
意思就是你输入 整数时候 ,会转换到右边 x 然后赋值给increase
=>这符号其实是映射转化的意思,个人理解,可能不准确,
var increase = (x: Int) => x + 1
increase(10)
res0: Int = 11
意思就是你输入 整数时候 ,会转换到右边 x 然后赋值给increase
转载于:https://www.cnblogs.com/java-synchronized/p/8334030.html