[ ソース: liblist-rotation-cycle-perl ]
パッケージ: liblist-rotation-cycle-perl (1.009-1)
liblist-rotation-cycle-perl に関するリンク
Debian の資源:
liblist-rotation-cycle-perl ソースパッケージをダウンロード:
- [liblist-rotation-cycle-perl_1.009-1.dsc]
- [liblist-rotation-cycle-perl_1.009.orig.tar.gz]
- [liblist-rotation-cycle-perl_1.009-1.debian.tar.gz]
メンテナ:
外部の資源:
- ホームページ [metacpan.org]
類似のパッケージ:
module that cycles through a list of values
Use List::Rotation::Cycle to loop through a list of values. Once you get to the end of the list, you go back to the beginning.
List::Rotation::Cycle is implemented as a Singleton Pattern. You always just get 1 (the very same) Cycle object even if you use the new method several times. This is done by using Memoize on the new method. It returns the same object for every use of new that comes with the same List of parameters.