1Attean::API::RepeatableUIsteerraCtoonrt(r3i)buted Perl DAotctuemaenn:t:aAtPiIo:n:RepeatableIterator(3)
2
3
4
6 Attean::API::RepeatableIterator - Role representing iterators that may
7 be reset and iterated again
8
10 This document describes Attean::API::RepeatableIterator version 0.022
11
13 use v5.14;
14 use Attean;
15
17 This is a Moo role that are consumed by iterators that can be reset and
18 iterated again.
19
21 This role consumes the Attean::API::Iterator role.
22
24 Classes consuming this role must provide the following methods:
25
26 "reset"
27 Resets the state of the iterator, allowing iteration from the start
28 of the underlying data.
29
31 This role provides default implementations of the following methods:
32
33 "elements"
34 Returns a list of all elements in the iterator, leaving the
35 iterator state untouched.
36
37 "peek"
38 Returns the first element of the iterator, leaving the iterator
39 state untouched.
40
42 Please report any bugs or feature requests to through the GitHub web
43 interface at <https://github.com/kasei/attean/issues>.
44
47 Gregory Todd Williams "<gwilliams@cpan.org>"
48
50 Copyright (c) 2014--2019 Gregory Todd Williams. This program is free
51 software; you can redistribute it and/or modify it under the same terms
52 as Perl itself.
53
54
55
56perl v5.28.1 2019-03-21Attean::API::RepeatableIterator(3)