{"id":19129715,"url":"https://github.com/syohex/p5-list-utils-by","last_synced_at":"2025-05-06T00:35:29.561Z","repository":{"id":641707,"uuid":"2468457","full_name":"syohex/p5-List-Utils-By","owner":"syohex","description":"Implementation List::UtilsBy using XS","archived":false,"fork":false,"pushed_at":"2022-04-19T10:13:34.000Z","size":67,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T12:42:48.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syohex.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-27T15:19:21.000Z","updated_at":"2022-04-19T09:31:00.000Z","dependencies_parsed_at":"2022-08-06T10:00:14.177Z","dependency_job_id":null,"html_url":"https://github.com/syohex/p5-List-Utils-By","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syohex%2Fp5-List-Utils-By","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syohex%2Fp5-List-Utils-By/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syohex%2Fp5-List-Utils-By/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syohex%2Fp5-List-Utils-By/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syohex","download_url":"https://codeload.github.com/syohex/p5-List-Utils-By/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252599927,"owners_count":21774498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T06:08:16.132Z","updated_at":"2025-05-06T00:35:29.504Z","avatar_url":"https://github.com/syohex.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/syohex/p5-List-Utils-By/workflows/CI/badge.svg)](https://github.com/syohex/p5-List-Utils-By/actions) [![MetaCPAN Release](https://badge.fury.io/pl/List-UtilsBy-XS.svg)](https://metacpan.org/release/List-UtilsBy-XS)\n# NAME\n\nList::UtilsBy::XS - XS implementation of List::UtilsBy\n\n# SYNOPSIS\n\n    use List::UtilsBy::XS qw(sort_by);\n\n    sort_by { $_-\u003e{foo} } @hash_ref_list\n\nYou can use those functions same as List::UtilsBy ones,\nbut some functions have limitation. See [LIMITATION](https://metacpan.org/pod/LIMITATION) section.\n\n# DESCRIPTION\n\nList::UtilsBy::XS is XS implementation of List::UtilsBy.\nFunctions are more fast than original ones.\n\n# FUNCTIONS\n\nSame as [List::UtilsBy](https://metacpan.org/pod/List%3A%3AUtilsBy)\n\nList::UtilsBy::XS implements following functions.\n\n- sort\\_by\n- nsort\\_by\n- rev\\_sort\\_by\n- rev\\_nsort\\_by\n- max\\_by (alias nmax\\_by)\n- min\\_by (alias nmin\\_by)\n- uniq\\_by\n- partition\\_by\n- count\\_by\n- zip\\_by\n- unzip\\_by\n- extract\\_by\n- weighted\\_shuffle\\_by\n- bundle\\_by\n\n# LIMITATIONS\n\nSome functions are implemented by lightweight callback API.\n`sort_by`, `rev_sort_by`, `nsort_by`, `rev_nsort_by`,\n`min_by`, `max_by`, `nmin_by`, `nmax_by`, `uniq_by`, `partion_by`,\n`count_by`, `extract_by`, `weighted_shuffle_by` are limited some features.\n\nLimitations are:\n\n## Don't change argument `$_` in code block\n\n[List::UtilsBy](https://metacpan.org/pod/List%3A%3AUtilsBy) localizes `$_` in the code block, but List::UtilsBy::XS\ndoesn't localize it and it is only alias same as `map`, `grep`. So you\nshould not modify `$_` in callback subroutine.\n\n## Can't access to arguments as `@_` in code block\n\nYou can access argument as only `$_` and cannot access as `@_`,\n`$_[n]`.\n\n# AUTHOR\n\nSyohei YOSHIDA \u003csyohex@gmail.com\u003e\n\n# COPYRIGHT\n\nCopyright 2013- Syohei YOSHIDA\n\n# LICENSE\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# SEE ALSO\n\n[List::UtilsBy](https://metacpan.org/pod/List%3A%3AUtilsBy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyohex%2Fp5-list-utils-by","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyohex%2Fp5-list-utils-by","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyohex%2Fp5-list-utils-by/lists"}