delete an element from an array

bearophile bearophileHUGS at lycos.com
Sun Oct 24 15:29:55 PDT 2010


spir:

> Bearophile, what do you mean with "arrays dynamic to the right"? (that they extend/compress (only) on the right side?)

In Python you may add items at the start too of a list, but that's not an efficient operation, Python lists are amortized efficient only if you append items to their right side, because they may keep some free space only on their right site. In Python the deque collection supports efficient add/remove from both ends.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list