Subject: | Consider minmax(str)_by |
The "minmax" algorithm can give a faster result for otherwise performing
my $minimal = min_by { $_->value } @things;
my $maximal = max_by { $_->value } @things;
Consider instead
my ( $minimal, $maximal ) = minmax_by { $_->value } @things;
Don't forget the analogous string case.
--
Paul Evans