Reduce iterator.