【发布时间】:2012-06-16 19:10:40
【问题描述】:
我记得在 Scala REPL 中某处有一个开关可以抑制返回类型的打印,但我找不到它。我对将此开关添加到 sbt 构建文件特别感兴趣。类似returnTypes in console := false。
例如现在我有
scala> within( Span( 0, 33 ))
res7: scala.collection.immutable.IndexedSeq[(de.sciss.lucre.expr.SpanLike, scala.collection.immutable.IndexedSeq[(de.sciss.lucre.expr.Expr[de.sciss.lucre.stm.InMemory,de.sciss.lucre.expr.SpanLike], de.sciss.lucre.expr.Expr[de.sciss.lucre.stm.InMemory,Long])])] = Vector()
出于显而易见的原因,我想要
scala> within( Span( 0, 33 ))
res7: Vector()
【问题讨论】:
标签: scala sbt read-eval-print-loop