Skip Menu |
 

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

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

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

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



Subject: Wishlist: uniqi for case-insensitive
Download (untitled) / with headers
text/plain 125b
uniqi is like uniq but compares strings case-insensitively, as fc($a) eq fc($b). The first occurrence of each value is used.
Download (untitled) / with headers
text/plain 196b
On 2020-05-20 12:48:56, EDAVIS wrote: Show quoted text
> uniqi is like uniq but compares strings case-insensitively, as fc($a) > eq fc($b). The first occurrence of each value is used.
See List::UtilsBy::uniq_by.
Download (untitled) / with headers
text/plain 295b
On Wed May 20 18:25:11 2020, ETHER wrote: Show quoted text
> On 2020-05-20 12:48:56, EDAVIS wrote:
> > uniqi is like uniq but compares strings case-insensitively, as fc($a) > > eq fc($b). The first occurrence of each value is used.
> > See List::UtilsBy::uniq_by.
When this is good enough, please drop a note.
Download (untitled) / with headers
text/plain 161b
Thanks for the pointer. I think uniqi would be a handy shortcut but if you think it's too specialized to deserve its own name, then reject this feature request.
Download (untitled) / with headers
text/plain 328b
On Thu May 21 03:54:34 2020, EDAVIS wrote: Show quoted text
> Thanks for the pointer. I think uniqi would be a handy shortcut but > if you think it's too specialized to deserve its own name, then reject > this feature request.
It's more or less trivial - just strlower (+i18n, but no-brainer) before proving whether it's in uniq hash or not.
When it's a no-brainer, why there is no implementation and no test?


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.