Name : perl-Array-Group
| |
Version : 4.2
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 2.67
| Date : 2024-08-05 19:54:04
|
Group : Development/Libraries/Perl
| Source RPM : perl-Array-Group-4.2-2.67.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Convert an array into array of arrayrefs of uniform size N
|
Description :
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.
Both methods can be called as either functions or class methods (to ensure compatibility with previous releases), and the array to be reformed can be passed as a reference.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/openSUSE_Tumbleweed/noarch |