Scala also permits partial application of function arguments.
val div42 = 42 / (_: Int)
Scala requires a type annotation because /
is overloaded (it is the Java function after all).
div42(7)
prints 6
.
In Scala, not all functions and methods receive transparent first-class status when it comes to partial application (remember, it compiles to standard .class files).