Skip Menu |

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

Report information
The Basics
Id: 132111
Status: new
Priority: 0/
Queue: List-MoreUtils

Owner: Nobody in particular
Requestors: EDAVIS [...]

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

Subject: Wishlist: classical 'uniq' equivalent, trimming consecutive duplicates only
Download (untitled) / with headers
text/plain 430b
uniq() removes duplicate elements no matter what order they are seen in. This differs from Unix's uniq(1) which only removes consecutive duplicates (and so requires sorted input if you want to guarantee all duplicates are removed). However, the consecutive-only behaviour requires less memory and sometimes the weaker filtering is what you want. Please add uniq_consecutive() which trims consecutive repeats of the same string.

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

Please report any issues with to