Show me your flow charts and conceal your tables and I shall continue to be mystified. Show me your tables and I usually won’t need your flow charts; they’ll be obvious.
|--Frederick P. Brooks|
But if less is more, think how much more more would be!
|--Dr. Frasier Crane, Frasier|
Naturally, you will now be pondering whether, and how, iterator adaptations may be used in concert. Well, the good news is that they can. The even better news is that you don’t need to write a new iterator adaptor in order to combine them!
Let’s imagine that we have a set of integers (
int) and that we want to filter out the odd ones and then transform the remaining elements to