Applying Compose Method After I wrote that post on precedence, map, and function composition in Scala, I started to wonder: I’ve been thinking that I should experiment more with applying Compose Method. That refactoring recommends that, if I start with the original version of my code, data.foreach(s => writer.addDocument(createDocument s)) then I should extract the […]