Attean::API::RepeatableIterator3pm
Role representing iterators that may be reset and iterated again
Usage
use v5.14;use Attean;
Version
This document describes Attean::API::RepeatableIterator version 0.035
Overview
This is a Moo role that are consumed by iterators that can be reset and iterated again.
Roles
This role consumes the Attean::API::Iterator role.
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.
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.
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.