Role::TinyCommons::Iterator::Circular - A cicular iterator
This document describes version 0.001 of Role::TinyCommons::Iterator::Circular (from Perl distribution Role-TinyCommons-Iterator), released on 2021-04-18.
A circular iterator is just like a regular iterator except that it will never run out of items (unless it is empty). When the last item has been retrieved, the index will just move back to the beginning; get_iterator_index will return 0 again and get_next_item will retrieve the first item.
get_iterator_index
get_next_item
Role::TinyCommons::Iterator
No additional required methods.
Please visit the project's homepage at https://metacpan.org/release/Role-TinyCommons-Iterator.
Source repository is at https://github.com/perlancar/perl-Role-TinyCommons-Iterator.
Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-Role-TinyCommons-Iterator/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Role::TinyCommons::Iterator::Resettable
perlancar <perlancar@cpan.org>
This software is copyright (c) 2021 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Role::TinyCommons::Iterator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Role::TinyCommons::Iterator
CPAN shell
perl -MCPAN -e shell install Role::TinyCommons::Iterator
For more information on module installation, please visit the detailed CPAN module installation guide.