The ST makes sense only when the orderingfunction on each element to be sorted is expensive to compute, and should therefore be cached to prevent multiple calls (so the list has to be long enough as well). Since "array lookup" is a cheap (nearly free) orderingfunction, the ST is far too much overkill on this choice.
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Sorting Arrays
by merlyn
in thread Sorting Arrays
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |