Skip to content
Sections
>> Trisquel >> パッケージ >> etiona >> perl >> libsort-key-top-perl
etiona  ] [  nabia  ] [  aramo  ]
[ ソース: libsort-key-top-perl  ]

パッケージ: libsort-key-top-perl (0.08-2)

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.26.1-2ubuntu1)
    Larry Wall's Practical Extraction and Report Language
  • dep: perlapi-5.26.1
    以下のパッケージによって提供される仮想パッケージです: perl-base

libsort-key-top-perl のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
amd64 18.4 kB75 kB [ファイル一覧]
i386 18.9 kB79 kB [ファイル一覧]