[REBOL] Re: Trimming values from a series?
From: carl:cybercraft at: 25-Jul-2002 13:46
On 25-Jul-02, Ed Dana wrote:
>> Hmmm. Are there cases where unique can change the order, as well as
>> stripping out duplicates?
> I would expect that UNIQUE first sorts the data in order to trim out
> the duplicates. It's the most efficient way to find and remove them.
> Which is why I went looking for it in SORT first.
> I doubt that issuing SORT and UNIQUE in any combination is faster
> because of the redundancy.
> I could be wrong, though...
I think you are. Unique is much faster than sort, at least on Amiga.
Umm, well, at least on the block of 1s and 2s in a block I've just
tried. (: This suggests unique doesn't use sort, or at least not the
sort available to us.
--
Carl Read