When I define a function inside the Scala REPL, I can see the created function's type, like this:
scala> def testing(a: Int) = a + 1
testing: (a: Int)Int
How can I see the function testing: (a:Int)Int
when I'm not in REPL? Say, I want to know a function type a library uses at runtime so I can use the same type.
Thanks before.