Scala Other Higher Order Functions