I think ".iterator" might work here, which would be a bit nicer since the documentation specifically provides guarantees about it.