val a = 1 和 val a:Int = 1
除了for (变量 <- 集合 ) {
<-的用法,场景?
for(可以添加if ,等价于filter)
map建议使用getOrElse
除了list.filter(item => item == 3)
=>的用法,场景?
从list中删除元素
https://alvinalexander.com/scala/how-to-delete-elements-from-list-listbuffer-scala-cookbook
yield用法,场景
to和until的区别
Option、Some、None区别
def cpusum(args:Int*):Int={ 和 def cpusum(args:Array[Int]):Int={ 的区别
apply含义