See Section 11.2.2, page 509, for a general comparison between for_each() and transform().
A third example demonstrates how to use the return value of the for_each() algorithm. Because
for_each() has the special property that it returns its operation, you can process and return a result
inside the operation