| 1 | Source: libiterator-perl |
| 2 | Section: perl |
| 3 | Priority: optional |
| 4 | Maintainer: Debian Perl Group <[email protected]> |
| 5 | Uploaders: Axel Beckert <[email protected]> |
| 6 | Build-Depends: debhelper-compat (= 13) |
| 7 | Build-Depends-Indep: libexception-class-perl, |
| 8 | perl |
| 9 | Standards-Version: 3.9.6 |
| 10 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libiterator-perl |
| 11 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libiterator-perl.git |
| 12 | Homepage: https://metacpan.org/release/Iterator |
| 13 | Testsuite: autopkgtest-pkg-perl |
| 14 | |
| 15 | Package: libiterator-perl |
| 16 | Architecture: all |
| 17 | Depends: libexception-class-perl, |
| 18 | ${misc:Depends}, |
| 19 | ${perl:Depends} |
| 20 | Description: Perl implementation of iterators |
| 21 | Iterator is meant to be the definitive implementation of iterators, as |
| 22 | popularized by Mark Jason Dominus's lectures and recent book (Higher Order |
| 23 | Perl, Morgan Kauffman, 2005). |
| 24 | . |
| 25 | An "iterator" is an object, represented as a code block that generates the |
| 26 | "next value" of a sequence, and generally implemented as a closure. When you |
| 27 | need a value to operate on, you pull it from the iterator. If it depends on |
| 28 | other iterators, it pulls values from them when it needs to. Iterators can be |
| 29 | chained together (see Iterator::Util for functions that help you do just |
| 30 | that), queueing up work to be done but not actually doing it until a value is |
| 31 | needed at the front end of the chain. At that time, one data value is pulled |
| 32 | through the chain. |