Dao De Code

Call Scala curried functions from Java

For some reason I thought scala curried functions is one of the features you will have troubles using from Java. But it happens that you can perfectly call a curried Scala function

class A {  
    def curried(i: Int)(s: String) = i + s.toInt

from Java

new A().curried(5, "7")
comments powered by Disqus