Skip to content
Sections
>> Trisquel >> 软件包 >> nabia >> perl >> libsort-key-top-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: libsort-key-top-perl  ]

软件包: libsort-key-top-perl (0.08-3build1)

Perl module to select and sort top n elements of a list

The functions available from this module select the top n elements from a list using several common orderings and custom key extraction procedures.

They are all variations around 'keytopsort { CALC_KEY($_) } $n => @data;'.

In array context, this function calculates the ordering key for every element in @data using the expression inside the block. Then it selects and orders the $n elements with the lower keys when compared lexicographically.

In scalar context, the value returned by the functions on this module is the cutoff value allowing to select nth element from the array.

其他与 libsort-key-top-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libc6 (>= 2.4)
    GNU C Library: Shared libraries
    同时作为一个虚包由这些包填实: libc6-udeb
  • dep: perl (>= 5.30.0-7)
    Larry Wall's Practical Extraction and Report Language
  • dep: perlapi-5.30.0
    本虚包由这些包填实: perl-base

下载 libsort-key-top-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
amd64 18.7 kB79 kB [文件列表]
armhf 17.6 kB67 kB [文件列表]