`i` can be `size_t`.