Skip to content
Prev 157403 / 398506 Next

remove multiple elements from vector

Hi,

?unique should work fine for this.

I think the problem in your implementation is that you modify x in the  
loop, in particular its length may become shorter than the stopping  
condition.

HTH,

baptiste
On 27 Sep 2008, at 14:30, Bastian Offermann wrote:

            
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag