2015-09-10 63 views

回答

8

按照scala/package.scala用來做一些標準收取,而不可用進口的格局。它涉及一個package objecttypeval爲每個進口:

package object p { 
    type Try[A] = scala.util.Try[A] 
    val Try = scala.util.Try 
    type Queue[A] = scala.collection.mutable.Queue[A] 
    val Queue = scala.collection.mutable.Queue 
}