{"id":16515242,"url":"https://github.com/pine/p5-hash-util-pick","last_synced_at":"2025-08-09T03:24:15.236Z","repository":{"id":56831278,"uuid":"66577172","full_name":"pine/p5-Hash-Util-Pick","owner":"pine","description":":scissors: The non-destructive hash utilities for picking hash.","archived":false,"fork":false,"pushed_at":"2019-05-27T13:31:53.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-15T15:34:33.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Hash::Util::Pick","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pine.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":"2016-08-25T17:01:45.000Z","updated_at":"2019-05-27T13:31:53.000Z","dependencies_parsed_at":"2022-08-28T20:10:32.332Z","dependency_job_id":null,"html_url":"https://github.com/pine/p5-Hash-Util-Pick","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Hash-Util-Pick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Hash-Util-Pick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Hash-Util-Pick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Hash-Util-Pick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pine","download_url":"https://codeload.github.com/pine/p5-Hash-Util-Pick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241533650,"owners_count":19977826,"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-10-11T16:16:18.219Z","updated_at":"2025-03-02T15:54:09.753Z","avatar_url":"https://github.com/pine.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/pine/p5-Hash-Util-Pick.svg?branch=master)](https://travis-ci.org/pine/p5-Hash-Util-Pick) [![Build Status](https://img.shields.io/appveyor/ci/pine/p5-Hash-Util-Pick/master.svg?logo=appveyor)](https://ci.appveyor.com/project/pine/p5-Hash-Util-Pick/branch/master)\n# NAME\n\nHash::Util::Pick - The non-destructive utilities for picking hash\n\n# SYNOPSIS\n\n```perl\nuse Hash::Util::Pick qw/pick/;\n\nmy $src = {\n    foo =\u003e 0,\n    bar =\u003e 1,\n    baz =\u003e 2,\n};\n\nmy $dest = pick $hash =\u003e qw/foo bar/;\n# =\u003e { foo =\u003e 0, bar =\u003e 1 }\n```\n\n# DESCRIPTION\n\nHash::Util::Pick is the non-destructive utilities for picking hash\n\n# METHODS\n\n## `pick(\\%hash, @keys)`\n\nCreate hash reference picked by special keys.\n\n```perl\npick { } =\u003e qw/foo/; # { }\npick { foo =\u003e 0 } =\u003e qw/bar/; # { }\npick { foo =\u003e 0, bar =\u003e 1 } =\u003e qw/foo/; # { foo =\u003e 0 }\n```\n\n## `pick_by(\\%hash, \\\u0026predicate)`\n\nCreate hash reference picked by block.\n\n```perl\npick_by { foo =\u003e 0, bar =\u003e 1 } =\u003e sub { $_ \u003e 0 }; # { bar =\u003e 1 }\n```\n\n## `omit(\\%hash, @keys)`\n\nCreate hash reference omitted by special keys.\n\n```perl\nomit { } =\u003e qw/foo/; # { }\nomit { foo =\u003e 0 } =\u003e qw/bar/; # { foo =\u003e 0 }\nomit { foo =\u003e 0, bar =\u003e 1 } =\u003e qw/foo/; # { bar =\u003e 1 }\n```\n\n## `omit_by(\\%hash, \\\u0026predicate)`\n\nCreate hash reference omitted by block.\n\n```perl\nomit_by { foo =\u003e 0, bar =\u003e 1 } =\u003e sub { $_ \u003e 0 }; # { foo =\u003e 0 }\n```\n\n# SEE ALSO\n\n- [Lodash Documentation](https://lodash.com/docs/)\n\n# LICENSE\n\nThe MIT License (MIT)\n\nCopyright (c) 2016-2019 Pine Mizune\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n# AUTHOR\n\nPine Mizune \u003cpinemz@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-hash-util-pick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpine%2Fp5-hash-util-pick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-hash-util-pick/lists"}