Skip Menu |

This queue is for tickets about the List-AllUtils CPAN distribution.

Report information
The Basics
Id: 56206
Status: resolved
Priority: 0/
Queue: List-AllUtils

People
Owner: Nobody in particular
Requestors: norbi [...] nix.hu
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.02
Fixed in: (no value)



Subject: please include List::Pairwise
It would be great if List::AllUtils would also provide the functions of List::Pairwise (mapp/map_pairwise, grepp/grep_pairwise, firstp/first_pairwise, lastp/last_pairwise, pair). I volunteer to write the patch but first I wanted to make sure you're not against the idea.
Subject: Re: [rt.cpan.org #56206] please include List::Pairwise
Date: Sat, 10 Apr 2010 16:30:14 -0500 (CDT)
To: BUCHMULLER Norbert via RT <bug-List-AllUtils [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Thu, 1 Apr 2010, BUCHMULLER Norbert via RT wrote: Show quoted text
> It would be great if List::AllUtils would also provide the functions of > List::Pairwise (mapp/map_pairwise, grepp/grep_pairwise, > firstp/first_pairwise, lastp/last_pairwise, pair).
I'm kind of torn on this. AllUtils was created primarily to scratch my itch, and I have never used List::Pairwise. I'm also worried that the more modules AllUtils includes, the less useful it becomes in some ways. OTOH, I can see why Pairwise would be useful for some folks. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
From: norbi [...] nix.hu
Show quoted text
> I'm kind of torn on this. AllUtils was created primarily to scratch my > itch, and I have never used List::Pairwise. I'm also worried that the
more Show quoted text
> modules AllUtils includes, the less useful it becomes in some ways.
I understand your reasoning. On the other hand, if you look at it this way maybe I can convince you: * Perl has both arrays and hashes as built-in types (and they're widely used indeed) and they both are frequently initialized/reset from lists * 'map'/'grep' are built-in (and widely used) list operators suitable for arrays/slices * 'map_pairwise'/'grep_pairwise' are list operators suitable for hashes Following that reasoning 'map_pairwise'/'grep_pairwise' do not look like exotic operators. And, after all, this module is called List::AllUtils, not List::AlmostAllUtils. ;-) I'd be more happy if List::MoreUtils would have similar functionality (with XS code), but the current status is that List::Pairwise fills this niche. You can catch me on IRC (nick: norbi) for further discussions. (And sorry for replying so late to your RT comment.)
The latest List::Util includes functions that do the same thing as List::Pairwise.