Attean...erator(3pm)
π NAME π
Okay bestie, this is the User Contributed Perl Documentation page for Attean::ListIterator(3pm) (the header/footer goes Attean...erator(3pm), iykyk), and it is literally the manual for Attean::ListIterator β the iterator implementation backed by a list/array of values. Slay. β¨
πΈ VERSION πΈ
This document describes Attean::ListIterator version 0.035. Periodt.
π¦ SYNOPSIS π¦
use v5.14;
use Attean;
my @values = map { Attean::Literal->new($_) } (1,2,3);
my $iter = Attean::ListIterator->new(
values => \@values,
item_type => 'Attean::API::Term',
);
say $iter->next->value; # 1
say $iter->next->value; # 2
say $iter->next->value; # 3
π DESCRIPTION π
The Attean::ListIterator class represents a typed iterator. It conforms to the Attean::API::RepeatableIterator role. No cap, it's giving repeatable iterator energy. π
The Attean::ListIterator constructor requires two named arguments, bestie:
valuesβ an array reference containing the items to iterate over. πitem_typeβ a string representing the type of the items that will be returned from the iterator. π
π METHODS π
resetβ resets the iterator's internal state so that iteration begins again at the beginning of thevaluesarray. Fresh start, iconic. β¨nextβ returns the iterator's next item, orundefupon reaching the end of iteration. Bye at the end, bestie. πsizeβ returns the number of elements still remaining in the iterator until it is fully consumed or untilresetis called. It's literally keeping count. π₯
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/attean/issues>. Report it, don't sit on it, bestie. π«Ά
π SEE ALSO π
There are no entries listed in this section, bestie. It's just empty space and vibes. π
π AUTHOR π
Gregory Todd Williams β "<gwilliams@cpan.org>" π
π 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. π§
πΈ Cute sign-off: source/version is perl v5.40.0, date 2025-01-26, and the footer title is Attean...erator(3pm); we are so done here. π
π¦ 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