GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
List::UtilsBy::XS(3) User Contributed Perl Documentation List::UtilsBy::XS(3)

List::UtilsBy::XS - XS implementation of List::UtilsBy

  use List::UtilsBy::XS qw(sort_by);

  sort_by { $_->{foo} } @hash_ref_list

You can use those functions same as List::UtilsBy ones, but some functions have limitation. See LIMITATION section.

List::UtilsBy::XS is XS implementation of List::UtilsBy. Functions are more fast than original ones.

Same as List::UtilsBy

List::UtilsBy::XS implements following functions.

sort_by
nsort_by
rev_sort_by
rev_nsort_by
max_by (alias nmax_by)
min_by (alias nmin_by)
uniq_by
partition_by
count_by
zip_by
unzip_by
extract_by
weighted_shuffle_by
bundle_by

Some functions are implemented by lightweight callback API. "sort_by", "rev_sort_by", "nsort_by", "rev_nsort_by", "min_by", "max_by", "nmin_by", "nmax_by", "uniq_by", "partion_by", "count_by", "extract_by", "weighted_shuffle_by" are limited some features.

Limitations are:

List::UtilsBy localizes $_ in the code block, but List::UtilsBy::XS doesn't localize it and it is only alias same as "map", "grep". So you should not modify $_ in callback subroutine.

You can access argument as only $_ and cannot access as @_, $_[n].

Syohei YOSHIDA <syohex@gmail.com>

Copyright 2013- Syohei YOSHIDA

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

List::UtilsBy
2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.