The callback also receives the inner iterator.