laziness, impatience, and hubris | |
PerlMonks |
Re^2: sort +*, @arrayby jdporter (Paladin) |
on Dec 09, 2013 at 04:05 UTC ( [id://1066248]=note: print w/replies, xml ) | Need Help?? |
I concur. TIMOTIMO wrote: ... and then sorts the original list based on the corresponding result list. In perl5, this was known as the 'schwartzian transformation'.That is a completely inaccurate characterization of the technique known as the ST. Yes, that's one thing that could be done with the ST, but the ST itself was far more general, and by definition must be a functional pipeline of the form map-sort-map. But there are also other — better — ways of "sorting an original list based on the corresponding result list." The brilliance of the ST is its conciseness, not its speed.
I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
In Section
Meditations
|
|