I’d like to convert an Array[String] to an Array[Int], using map method. What is the shortest way to get a function of type (String) => Int to pass as map argument?
I’d prefer convert existing builtin ones like Integer.valueOf in some way.
A method of argument binding to shorten the construction like def parseInt(s:String) = Integer.parseInt(s, 10) would also be great.
or