blob: dc78756ec64d2f298647857af293c47e794f1d7d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
package scala.tools.nsc.util
object trace {
def apply[T](msg: String)(value: T): T = {
println(msg+value)
value
}
def withFun[T, U](msg: String)(value: T)(fun: T => U): T = {
println(msg+fun(value))
value
}
}
|