Package Info

perl-MooseX-Iterator


Iterate over collections


Development/Libraries/Perl

This is an attempt to add smalltalk-like streams to Moose. It currently works with ArrayRefs and HashRefs.

  • next

The next method provides the next item in the colletion.

For arrays it returns the element of the array

For hashs it returns a pair as a hashref with the keys: key and value

  • has_next

The has_next method is a boolean method that is true if there is another item in the colletion after the current item. and falue if there isn't.

  • peek

The peek method returns the next item without moving the state of the iterator forward. It returns undef if it is at the end of the collection.

  • reset

Resets the cursor, so you can iterate through the elements again.


License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/MooseX-Iterator/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.11-bp156.3.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-Iterator
0.11-bp155.2.9 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-Iterator
0.11-bp154.1.18 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-Iterator
0.11-bp153.1.12 info GA Release 2021-02-25 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-Iterator
0.11-bp152.3.14 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-Iterator
0.11-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-Iterator
0.11-bp151.2.11 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-Iterator
0.11-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-MooseX-Iterator