Function composition of methods, functions, and partially applied functions in Scala
Somewhat similar to Stack Overflow question Compose and andThen methods , I've been working through Twitter's Scala School tutorial and quickly ran into the same problem that a commenter had (which was great, because I went to bed thinking my problem was solved). In the tutorial, it defines two methods as such: def addUmm(x: String) = x + " umm" def addAhem(x: String) = x + " ahem" and while in newer versions of Scala, you can't call compose on them as such: addUmm(_).compose(addAhem(_)) , the accepted answer (and some of the other answers seem to hinge upon the fact that addUmm and addAhem