Attean...terator(3pm)
π¦ Attean::API::RepeatableIterator β the manual page, but make it make sense
okay so first things first: this is the Attean::API::RepeatableIterator page from the User Contributed Perl Documentation section of the manual (section 3pm, iykyk), and it's literally about a role for iterators that you can reset and iterate again. yes bestie, rewind-able iterators. main character energy fr fr π
β¨ NAME β¨
Attean::API::RepeatableIterator β a role representing iterators that may be reset and iterated again π
πΈ VERSION πΈ
This document describes Attean::API::RepeatableIterator version 0.035. periodt.
β SYNOPSIS β
use v5.14;
use Attean;
that's it. that's the synopsis. short and iconic, no notes π«Ά
π DESCRIPTION π
So this is a Moo role, right? And it's consumed by iterators that can be reset and then iterated again. That's the whole vibe check: if your iterator can go back to the start, it wears this role like a little crown π.
π§ ROLES π§
This role consumes the Attean::API::Iterator role. it's giving "borrowing your bestie's jacket" β it inherits the whole vibe π
π₯ REQUIRED METHODS π₯
If you're a class consuming this role, you must bring these to the group chat. no exceptions, ngl:
resetβ resets the state of the iterator, so you can iterate again from the start of the underlying data. it's the rewind button, the "actually let's rewatch from episode one" of methods ππ
π METHODS π
This role hands you default implementations of these, already done, no cap:
elementsβ returns a list of all the elements in the iterator, and leaves the iterator state untouched. so you can peek at the whole list without wrecking the current position β¨ lowkey the nicest thing a method can do for you.peekβ returns the first element of the iterator, also leaving the iterator state untouched. it's giving "just looking, not touching" ππ
Heads up: the sacred rule for both of these is that the iterator state stays exactly where it was. untouched. do not disturb the iterator, she's resting π
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at https://github.com/kasei/attean/issues.
like, please actually tell them β silent bugs are not cute, bestie π
π¦ SEE ALSO π¦
okay so this section is genuinely empty in the original. nothing here. crickets. she said nothing and left π§ i'm not hiding anything from you, that's just how the page is.
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org> β the icon who made this π«Ά
πΈ COPYRIGHT πΈ
Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie! π this gem was documented for perl v5.40.0 and dated 2025-01-26 β shoutout to the Attean...terator(3pm) footer energy, slay πβ¨
π¦ where this page comes from
- debian trixie: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms