Add a distinct iterator.