{"id":7101,"date":"2022-12-20T19:35:17","date_gmt":"2022-12-20T22:35:17","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/listmoreutilsxs-man3\/"},"modified":"2022-12-20T19:35:17","modified_gmt":"2022-12-20T22:35:17","slug":"listmoreutilsxs-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/listmoreutilsxs-man3\/","title":{"rendered":"List::MoreUtils::XS (man3)"},"content":{"rendered":"<h1 align=\"center\">List::MoreUtils::XS<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#COPYRIGHT AND LICENSE\">COPYRIGHT AND LICENSE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">List::MoreUtils::XS \u2212 Provide compiled List::MoreUtils functions<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use List::MoreUtils::XS (); # doesn&#8217;t export anything <br \/> use List::MoreUtils &#8216;:all&#8217;; # required to import functions <br \/> my @procs = get_process_stats\u2212>fetchall_array; <br \/> # sort by ppid, then pid <br \/> qsort { $a\u2212>[3] <=> $b\u2212>[3] or $a\u2212>[2] <=> $b\u2212>[2] } @procs; <br \/> while( @procs ) { <br \/> my $proc = shift @procs; <br \/> my @children = equal_range { $_\u2212>[3] <=> $proc\u2212>[2] } @procs; <br \/> } <br \/> my @left = qw(this is a test); <br \/> my @right = qw(this is also a test); <br \/> my %rlinfo = listcmp @left, @right; <br \/> # on unsorted <br \/> my $i = firstidx { $_ eq &#8216;yeah&#8217; } @foo; <br \/> # on sorted \u2212 always first, but might not be &#8216;yeah&#8217; <br \/> my $j = lower_bound { $_ cmp &#8216;yeah&#8217; } @bar; <br \/> # on sorted \u2212 any of occurrences, is surely &#8216;yeah&#8217; <br \/> my $k = bsearchidx { $_ cmp &#8216;yeah&#8217; } @bar;<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">List::MoreUtils::XS is a backend for List::MoreUtils. Even if it\u2019s possible (because of user wishes) to have it practically independent from List::MoreUtils, it technically depend on &#8220;List::MoreUtils&#8221;. Since it\u2019s only a backend, the <small>API<\/small> is not public and can change without any warning.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">List::Util, List::AllUtils<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Jens Rehsack <rehsack <small>AT<\/small> cpan.org><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Adam Kennedy <adamk@cpan.org><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Tassilo von Parseval <tassilo.von.parseval@rwth\u2212aachen.de><\/p>\n<h2>COPYRIGHT AND LICENSE <a name=\"COPYRIGHT AND LICENSE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Some parts copyright 2011 Aaron Crane.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright 2004 \u2212 2010 by Tassilo von Parseval<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright 2013 \u2212 2017 by Jens Rehsack<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">All code added with 0.417 or later is licensed under the Apache License, Version 2.0 (the &#8220;License&#8221;); you may not use this file except in compliance with the License. You may obtain a copy of the License at<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">http:\/\/www.apache.org\/licenses\/LICENSE\u22122.0<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &#8221; <small>AS IS&#8221; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,<\/small> either express or implied. See the License for the specific language governing permissions and limitations under the License.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">All code until 0.416 is licensed under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  List::MoreUtils::XS \u2212 Provide compiled List::MoreUtils functions <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3445,3007],"class_list":["post-7101","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-listmoreutilsxs","tag-man3"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7101"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7101\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}