すべてのオプション
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ ソース: libtie-array-iterable-perl  ]

パッケージ: libtie-array-iterable-perl (0.03-2)

libtie-array-iterable-perl に関するリンク

Screenshot

Debian の資源:

libtie-array-iterable-perl ソースパッケージをダウンロード:

メンテナ:

外部の資源:

類似のパッケージ:

module allowing creation of iterators for lists and arrays

Tie::Hash::Iterable allows one to create iterators for lists and arrays. The concept of iterators is borrowed from the C++ STL [1], in which most of the collections have iterators, though this class does not attempt to fully mimic it.

Typically, in C/C++ or Perl, the 'easy' way to visit each item on a list is to use a counter, and then a for( ;; ) loop. However, this requires knowledge on how long the array is to know when to end. In addition, if items are removed or inserted into the array during the loop, then the counter will be incorrect on the next run through the loop, and will cause problems.

While some aspects of this are fixed in Perl by the use of for or foreach, these commands still suffer when items are removed or added to the array while in these loops. Also, if one wished to use break to step out of a foreach loop, then restart where they left at some later point, there is no way to do this without maintaining some additional state information.

タグ: ソフトウェア開発: Perl での開発, ライブラリ, 実装言語: Perl

その他の libtie-array-iterable-perl 関連パッケージ

  • 依存
  • 推奨
  • 提案
  • enhances

libtie-array-iterable-perl のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
all 16.4 kB51.0 kB [ファイル一覧]