它在書中斯卡拉說,在行動,使用:斯卡拉REPL內進口命令,我們將看到::斯卡拉REPL裏面輸入命令
scala> :imports
1) import java.lang._ (153 types, 158 terms)
2) import scala._ (798 types, 806 terms)
3) import scala.Predef._ (16 types, 167 terms, 96 are implicit)
而且根據這本書中那些包裝上面都自動進口。但在我的REPL(Scala 2.10.2)中,它只返回一行:
scala> :imports
1) import scala.Predef._ (162 terms, 78 are implicit)
有什麼問題嗎?
其中斯卡拉的版本在書中用的? – 4lex1v
AlexIv:這是2.10.0 – Pauli