| 1 | Source: libarray-group-perl |
| 2 | Maintainer: Debian Perl Group <[email protected]> |
| 3 | Section: perl |
| 4 | Testsuite: autopkgtest-pkg-perl |
| 5 | Priority: optional |
| 6 | Build-Depends: debhelper-compat (= 13) |
| 7 | Build-Depends-Indep: perl |
| 8 | Standards-Version: 3.9.6 |
| 9 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libarray-group-perl |
| 10 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libarray-group-perl.git |
| 11 | Homepage: https://metacpan.org/release/Array-Group |
| 12 | |
| 13 | Package: libarray-group-perl |
| 14 | Architecture: all |
| 15 | Depends: ${misc:Depends}, |
| 16 | ${perl:Depends} |
| 17 | Multi-Arch: foreign |
| 18 | Description: module that converts an array into array of arrayrefs of uniform size N |
| 19 | Array::Group is a module for converting a list into a list of arrayrefs |
| 20 | of the same size. It exports two methods: |
| 21 | . |
| 22 | The ngroup method reformats a list into a list of arrayrefs. It is often |
| 23 | used for formatting data into HTML tables, amongst other things. |
| 24 | . |
| 25 | dissect() returns a list of lists where the first element of each sublist |
| 26 | will be one of the first elements of the source list, and the last element |
| 27 | will be one of the last. This behaviour is much more useful when the input |
| 28 | list is sorted. |
| 29 | . |
| 30 | The key difference between the two methods is that dissect() takes elements |
| 31 | from the start of the list provided and pushes them onto each of the |
| 32 | subarrays sequentially, rather than simply dividing the list into discrete |
| 33 | chunks. |