blob: 97b312337248743181f77debae682277b62b447c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package scala.tools.nsc
package 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
}
}
|