Exercise 10.12 - Foldable[IndexedSeq] solved