freebsd-ports/devel/p5-List-Rotation-Cycle/pkg-descr
Rong-En Fan fe558526ba Add p5-List-Rotation-Cycle 1.004, cycle through a list of values.
PR:		ports/109293
Submitted by:	chinsan
2007-02-19 07:01:19 +00:00

9 lines
483 B
Text

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.
WWW: http://search.cpan.org/dist/List-Rotation-Cycle/