Attean...quence(3pm)
π NAME π
okay bestie, this is the Attean::IteratorSequence(3pm) page from the User Contributed Perl Documentation, and it's giving main-character iterator energy π
The class is Attean::IteratorSequence β an iterator implementation backed by zero or more sub-iterators. periodt.
β¨ VERSION β¨
This document describes Attean::IteratorSequence version 0.035 π
π SYNOPSIS π
use v5.14;
use Attean;
my $iter = Attean::IteratorSequence->new(iterators => [$iter1, $iter2]);
πΈ DESCRIPTION πΈ
The Attean::IteratorSequence class represents a typed iterator that's backed by zero or more sub-iterators. When you iterate over it, it returns all the elements of all of its sub-iterators, in order, before returning undef. It conforms to the Attean::API::Iterator role, no cap π¦
The Attean::IteratorSequence constructor requires two named arguments β it's lowkey needy in the best way:
iteratorsβ an array reference containing zero or moreAttean::API::Iteratorobjects.item_typeβ a string representing the type of the items that will be returned from the iterator.
π METHODS π
π next
Returns the iterator's next item, or undef upon reaching the end of iteration. iconic behavior, honestly.
π push( $iterator )
Adds the new $iterator to the end of the array of sub-iterators.
After this call,$iteratorwill be owned by theIteratorSequence, so making any method calls on$iteratorafter this point may produce unexpected results. bestie, do not touch it after handing it over β that's the vibe check π
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at https://github.com/kasei/attean/issues. fr fr, they want the feedback π
π¦ SEE ALSO π¦
No entries are listed under SEE ALSO in the source β it's giving minimalist, bestie π¦
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org> π
π COPYRIGHT π
The legal tea is: Copyright (c) 2014--2022 Gregory Todd Williams. And also: This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay and share-alike π
footer sign-off: perl v5.40.0, dated 2025-01-26 β that's the source/version and date, and that's the whole page, bestie. you ate β¨π
π¦ 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