logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Attean::API::RepeatableIterator - Role representing iterators that may be reset and iterated again

Author

       Gregory Todd Williams  "<gwilliams@cpan.org>"

Bugs

       Please   report   any   bugs   or   feature   requests   to   through   the   GitHub   web  interface  at
       <https://github.com/kasei/attean/issues>.

Description

       This is a Moo role that are consumed by iterators that can be reset and iterated again.

Methods

       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.

Name

       Attean::API::RepeatableIterator - Role representing iterators that may be reset and iterated again

Required Methods

       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.

Roles

       This role consumes the Attean::API::Iterator role.

See Also

Synopsis

         use v5.14;
         use Attean;

Version

       This document describes Attean::API::RepeatableIterator version 0.035

See Also