Perl: the Markov chain saw | |
PerlMonks |
Re^4: sort +*, @arrayby raiph (Deacon) |
on Dec 09, 2013 at 13:53 UTC ( [id://1066289]=note: print w/replies, xml ) | Need Help?? |
The +* is a "key extractor" closure. This closure corresponds to the before map of the ST. Of course, in the specific case of +*, it's trivial to instead just specify a "comparator" closure using <=>, but what if one instead writes:
(And of course the results of the closure call on a given item is memoized.)
In Section
Meditations
|
|