|Subject:||Wishlist: classical 'uniq' equivalent, trimming consecutive duplicates only|
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.