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 more Attean::API::Iterator objects.
  • 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, $iterator will be owned by the IteratorSequence, so making any method calls on $iterator after 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> πŸ‘‘


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