http://qs321.pair.com?node_id=189060


in reply to Re^6: Unique array w/o repeated elements and still keep the original order!
in thread Unique array w/o repeated elements and still keep the original order!

Heh, its to avoid the code you posted (and the implicit overhead of going through the list twice) that makes me use map{} instead.

I assume you somehow tried to change the value of constants or something like that?

BTW, i know the above could be represented as premature optimization, but the idea of iterating over a list twice for no good reason makes me unhappy.

:-)

Yves / DeMerphq
---
Software Engineering is Programming when you can't. -- E. W. Dijkstra (RIP)

  • Comment on Re: Re^6: Unique array w/o repeated elements and still keep the original order!