Giter Club home page Giter Club logo

p5-list-utils-by's Introduction

Build Status MetaCPAN Release

NAME

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

SYNOPSIS

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.

DESCRIPTION

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

FUNCTIONS

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

LIMITATIONS

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:

Don't change argument $_ in code block

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.

Can't access to arguments as @_ in code block

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

AUTHOR

Syohei YOSHIDA [email protected]

COPYRIGHT

Copyright 2013- Syohei YOSHIDA

LICENSE

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

SEE ALSO

List::UtilsBy

p5-list-utils-by's People

Contributors

syohex avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.