SwiftAirbnb
An iterator of iterators
Given a 'collection of collections' like [[1, 2], [], [3], [4, 5, 6]], how would you design an iterator that hands out elements one at a time in flat order (1, 2, 3, 4, 5, 6)? It has to work directly in for-in.