I'm uncomfortable with building references to undefined memory, because it's too tempting to touch it. I can change it to this, but I'm not sure if it's such a good idea. It also (imo) makes the iteration less clear.