>>12912488Depends on the language. Technically: no. The compiler can't dynamically extend an array (or buffer) of anything without the risk of overflowing onto another piece of memory. So when extending an array, what's typically done is freeing the previous memory and re-allocating somewhere else with the new size of the array (this operation is then optimized by the interpreter, ofc).
Iterators are just a bogus concept to aid a for loop which is increasing the memory address pointer by a fixed amount depending on the size. So that an iterator would be able to insert anything at all there is just a bundle of missunderstandings of what's actually going on, mostly created by java.
When it comes down to it, computers are just buffers, pointers, bytes and semantic concepts which helps the idiot programmer do what the compiler wants. Build a new array which has the structure you're after.