[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#731044: ITP: libarray-group-perl -- module that converts an array into array of arrayrefs of uniform size N



Package: wnpp
Owner: Radu-Bogdan Croitoru <croitoruradubogdan@gmail.com>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org,debian-perl@lists.debian.org

* Package name    : libarray-group-perl
  Version         : 3.0
  Upstream Author : Terrence Brannon <metaperl@gmail.com>
* URL             : https://metacpan.org/release/Array-Group
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : module that converts an array into array of arrayrefs of uniform size N

The ngroup method reformats a list into a list of arrayrefs. It is often used
for formatting data into HTML tables, amongst other things.

dissect() returns a list of lists where the first element of each sublist
will be one of the first elements of the source list, and the last element
will be one of the last. This behaviour is much more useful when the input
list is sorted.

The key difference between the two methods is that dissect() takes elements
from the start of the list provided and pushes them onto each of the
subarrays sequentially, rather than simply dividing the list into discrete
chunks.


Reply to: