To see anonymous function declaration
If I have a code:
map foreach { case(k,v) => println("k="+k+";v="+v) }
How may I make sure which kind of anonymous function foreach() function is
accepting ? I mean what kind of declaration was used to define this
function?
I'm guessing it is: Tuple2[Int, String] => Unit
But how may I see it / be sure ? In a console.
No comments:
Post a Comment