Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Scala 中是否有类似于 typedef 的东西用于闭包?
类似于:
typedef (a: Any*) => Boolean MyType
type MyType = (Any*) => Boolean
注意type关键字不能在package关卡中使用;object在, traitor class(or package object)中使用它。
type
package
object
trait
class
package object