看一下这个例子:val sum = list.fold(0)((x, y) => x + y) 和fold的方法签名fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
我假设A是List[Int]类型,A1是Int类型。根据 for fold,A1是a type parameter for th
val TOP, BOTTOM, LEFT, RIGHT = Value type MutableMap[K, V] = scala.collection.mutable.Map[K, V]这两行不是在做同一件事吗?type MutableMap[K, V] = scala.collection.mutable.Map[K, V]