Lightning flashed, thunder crashed and Perl6 RFC Librarian <[EMAIL PROTECTED]>
 whispered:
| =head1 TITLE
| 
| Builtin: partition
| 
| =head1 ABSTRACT
| 
| It is proposed that a new function, C<partition>, be added to Perl.
| C<partition($partition_size, \@list)> would return @list broken into
| references to sub-lists, each one $list_size in size.

This is very similar to what unzip does.  Would it be better to combine
them into a single function that could do both operations (and possibly
others) with a flag?  In fact, couldn't all this (zip, unzip, partition) be
handled as part of pack and unpack?

-spp

Reply via email to