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
uniqi is like uniq but compares strings case-insensitively, as fc($a) eq fc($b). The first occurrence of each value is used.
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.
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.
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.
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?