The following Scala code works for me:
def curry(s1: String)(s2: String): String = (s1 + " " + s2).toUpperCase
val uncurry = Function.uncurried(curry _)
println(uncurry("short", "pants"))
However the following code does not:
def cat(s1: String, s2: String): String = (s1 + " " + s2).toUpperCase
def curry = Function.curried (cat _)
println(curry("short")("pants"))
The above gives me a compiler error (in Eclipse)
value curried is not a member of object Function
And indeed, intellisense in Eclipse is also missing the curried function on the Function object... Any ideas?