So,...you said:
...if you had lazy lists (coming in perl6)...
And I couldn't see how lazy lists would benefit this problem; hence my original question (way back up there^^^ somewhere).
Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.
| [reply] |
| [reply] |
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.
| [reply] [d/l] |
See 427875
Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.
| [reply] [d/l] |