Note: jump down to "Question" below if you just want to skip the context
When giving talks on Scala I pretty much give "toy problems" like the one below as examples of Partially Applied Functions.
def multiply(x:Int, y:Int): Int = x * y val x5 = multiply(5, _:Int) x5(10) //produces 50 This example does help, however it's tough for me to explain a general "this is when you'd recognize when to use a partially applied function".
Question: Anyone have their own way of successfully explaining Partially Applied Functions that really hits home for Java (or other OO language) developers?