FreeBSD.software
Home/devel/p5-List-Rotation-Cycle

p5-List-Rotation-Cycle

1.009_1devel

Cycle 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.

$pkg install p5-List-Rotation-Cycle
metacpan.org/release/List-Rotation-Cycle
Origin
devel/p5-List-Rotation-Cycle
Size
10.1KiB
License
ART10, GPLv1+
Maintainer
perl@FreeBSD.org
Dependencies
1 packages
Required by
1 packages

Dependencies (1)

Required By (1)