Here `i` can be a `size_t`, negating the need for `list_size`.