Skip Menu |
 

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

Report information
The Basics
Id: 29886
Status: rejected
Priority: 0/
Queue: List-MoreUtils

People
Owner: Nobody in particular
Requestors: ilmari+cpan [...] ilmari.org
Cc:
AdminCc:

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



Subject: wish: array_eq
Download (untitled) / with headers
text/plain 174b
I find myself wanting to compare arrays quite a bit, how about adding something like this? sub array_eq (@@) { all { $_ } pairwise { defined $a && defined $b && $a eq $b } }
Subject: wish: array_eq
Download (untitled) / with headers
text/plain 201b
I find myself wanting to compare arrays quite a bit, how about adding something like this? sub array_eq (@@) { my ($a, $b) = @_; all { $_ } pairwise { defined $a && defined $b && $a eq $b } }
Download (untitled) / with headers
text/plain 325b
On Wed Oct 10 05:53:32 2007, ilmari wrote: Show quoted text
> I find myself wanting to compare arrays quite a bit, how about adding > something like this? > > sub array_eq (@@) { > all { $_ } pairwise { defined $a && defined $b && $a eq $b } > }
Argh, I accidentially hit tab and space and submitted prematurely. Anyways, you get the idea.
Subject: Dupe deleted (wish: array_eq)
Sorry for the duplicate report. Deleting.
I think this is superseded by smart matching in perl-5.10.
Download (untitled) / with headers
text/plain 194b
From my perspective listcmp answers the question and lets you as requestion figure out which parts of the list are equal and which not. Please reopen, when you're requirements are not fulfilled.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.