Steven Haryanto > SHARYANTO-Utils > SHARYANTO::List::Util

Download:
SHARYANTO-Utils-0.75.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.75   Source  

NAME ^

SHARYANTO::List::Util - List utilities

VERSION ^

This document describes version 0.75 of SHARYANTO::List::Util (from Perl distribution SHARYANTO-Utils), released on 2014-06-26.

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, e.g.

 my @res = uniq(1, 4, 4, 3, 1, 1, 2); # 1, 4, 3, 1, 2

uniq_adj_ci(@list) => LIST

Like uniq_adj except case-insensitive.

uniq_ci(@list) => LIST

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

find_missing_nums_in_seq(LIST) => LIST

Given a list of integers, return number(s) missing in the sequence, e.g.:

 find_missing_nums_in_seq(1, 2, 3, 4, 7, 8); # (5, 6)

find_missing_strs_in_seq(LIST) => LIST

Like find_missing_nums_in_seq, but for strings/letters "a".."z".

 find_missing_strs_in_seq("a", "e", "b"); # ("c", "d")
 find_missing_strs_in_seq("aa".."zu", "zz"); # ("zv", "zw", "zx", "zy")

SEE ALSO ^

SHARYANTO

HOMEPAGE ^

Please visit the project's homepage at https://metacpan.org/release/SHARYANTO-Utils.

SOURCE ^

Source repository is at https://github.com/sharyanto/perl-SHARYANTO-Utils.

BUGS ^

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

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.

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Steven Haryanto.

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

syntax highlighting: