How would lazy lists allow that?
You would still have to sort the whole array before you can perform the slice, because the last value in the array could be the highest.
In reply to Re^2: Better mousetrap (getting top N values from list X)
by BrowserUk
in thread Better mousetrap (getting top N values from list X)
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |