[ 源代码: liblist-rotation-cycle-perl ]
软件包:liblist-rotation-cycle-perl(1.009-1.1)
liblist-rotation-cycle-perl 的相关链接
Debian 的资源:
下载源码包 liblist-rotation-cycle-perl:
- [liblist-rotation-cycle-perl_1.009-1.1.dsc]
- [liblist-rotation-cycle-perl_1.009.orig.tar.gz]
- [liblist-rotation-cycle-perl_1.009-1.1.debian.tar.xz]
维护小组:
外部的资源:
- 主页 [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.