Jonathan M Davis:

> Well, then use indexOf() to get the offset and remove() to remove the element.

But you must test the result value of indexOf, because it returns -1 (a signed 
value, probably an integer, not a signed word, so it may give troubles on 64 
bit systems) when the item is missing. This is why Python has both a way to 
remove an item by index and by value.

Bye,
bearophile

Reply via email to