in reply to Re^8: Better mousetrap (getting top N values from list X)
in thread Better mousetrap (getting top N values from list X)
You're correct, sort is strict on its input arguments (i.e. it has to evaluate each one), but the importance of laziness comes about because the output is a lazy list.
-- All code is 100% tested and functional unless otherwise noted.
-- All code is 100% tested and functional unless otherwise noted.
In Section
Seekers of Perl Wisdom