Scala Partially Applied Functions