Name : perl-Class-Iterator
| |
Version : 0.3
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 8.69
| Date : 2024-08-05 19:15:03
|
Group : Development/Libraries/Perl
| Source RPM : perl-Class-Iterator-0.3-8.69.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Iterator class
|
Description :
Class::Iterator is a generic iterator object class. It use a closure an wrap into an object interface.
* new(\\&closure_generator)
This is the constructor. The argument is a sub which look like sub closure_generator { my $private_data; return sub { # do something with $private_data # and return it return $private_data } }
* next
calling this method make one iteration.
* $o = imap { ... } $it
This a creator. It create a new iterator from an existant iterator in the manner of map.
* $o = igrep { ... } $it
This a creator. It create a new iterator from an existant iterator in the manner of grep.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/openSUSE_Tumbleweed/noarch |