Attean::API::RepeatableIterator - Role representing iterators that may be reset and iterated again
This document describes Attean::API::RepeatableIterator version 0.016
use v5.14; use Attean;
This is a Moo role that are consumed by iterators that can be reset and iterated again.
This role consumes the Attean::API::Iterator role.
Classes consuming this role must provide the following methods:
reset
Resets the state of the iterator, allowing iteration from the start of the underlying data.
This role provides default implementations of the following methods:
elements
Returns a list of all elements in the iterator, leaving the iterator state untouched.
peek
Returns the first element of the iterator, leaving the iterator state untouched.
Please report any bugs or feature requests to through the GitHub web interface at https://github.com/kasei/attean/issues.
http://www.perlrdf.org/
Gregory Todd Williams <gwilliams@cpan.org>
<gwilliams@cpan.org>
Copyright (c) 2014--2016 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Attean, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Attean
CPAN shell
perl -MCPAN -e shell install Attean
For more information on module installation, please visit the detailed CPAN module installation guide.