NAME

List::Util::Uniq - List utilities related to finding unique items

VERSION

This document describes version 0.002 of List::Util::Uniq (from Perl distribution List-Util-Uniq), released on 2018-03-06.

SYNOPSIS

use List::Util::Uniq qw(uniq_adj uniq_adj_ci uniq_ci);

@res = uniq_adj(1, 4, 4, 3, 1, 1, 2); # 1, 4, 3, 1, 2
@res = uniq_adj_ci("a", "b", "B", "c", "a"); # "a", "b", "c", "a"
@res = uniq_ci("a", "b", "B", "c", "a"); # "a", "b", "c"

FUNCTIONS

Not exported by default but exportable.

uniq_adj(@list) => LIST

Remove adjacent duplicates from list, i.e. behave more like Unix utility's uniq instead of List::MoreUtils's uniq function. Uses string equality test.

uniq_adj_ci(@list) => LIST

Like uniq_adj except case-insensitive.

uniq_ci(@list) => LIST

Like List::MoreUtils' uniq except case-insensitive.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/List-Util-Uniq.

SOURCE

Source repository is at https://github.com/perlancar/perl-List-Util-Uniq.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=List-Util-Uniq

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

List::Util

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.