| 1 |
Source: libsort-key-top-perl |
| 2 |
Maintainer: Debian Med Packaging Team <[email protected]> |
| 3 |
Uploaders: Laszlo Kajan <[email protected]>, |
| 4 |
Andreas Tille <[email protected]>, |
| 5 |
Étienne Mollier <[email protected]> |
| 6 |
Section: perl |
| 7 |
Testsuite: autopkgtest-pkg-perl |
| 8 |
Build-Depends: debhelper-compat (= 13), |
| 9 |
perl-xs-dev |
| 10 |
Standards-Version: 4.7.3 |
| 11 |
Vcs-Browser: https://salsa.debian.org/med-team/libsort-key-top-perl |
| 12 |
Vcs-Git: https://salsa.debian.org/med-team/libsort-key-top-perl.git |
| 13 |
Homepage: https://metacpan.org/release/Sort-Key-Top |
| 14 |
|
| 15 |
Package: libsort-key-top-perl |
| 16 |
Architecture: any |
| 17 |
Depends: ${perl:Depends}, |
| 18 |
${shlibs:Depends}, |
| 19 |
${misc:Depends} |
| 20 |
Description: Perl module to select and sort top n elements of a list |
| 21 |
The functions available from this module select the top n elements from a |
| 22 |
list using several common orderings and custom key extraction procedures. |
| 23 |
. |
| 24 |
They are all variations around 'keytopsort { CALC_KEY($_) } $n => @data;'. |
| 25 |
. |
| 26 |
In array context, this function calculates the ordering key for every element |
| 27 |
in @data using the expression inside the block. Then it selects and orders |
| 28 |
the $n elements with the lower keys when compared lexicographically. |
| 29 |
. |
| 30 |
In scalar context, the value returned by the functions on this module is the |
| 31 |
cutoff value allowing to select nth element from the array. |