Iterate a nested list with two iterators.