{"id":15019147,"url":"https://github.com/code-hex/p5-list-flatten-xs","last_synced_at":"2026-04-06T04:33:14.946Z","repository":{"id":56835718,"uuid":"85804646","full_name":"Code-Hex/p5-List-Flatten-XS","owner":"Code-Hex","description":"Fast flatten","archived":false,"fork":false,"pushed_at":"2018-11-28T00:41:41.000Z","size":86,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T00:42:38.726Z","etag":null,"topics":["fast","flatten","list","perl","perl5","xs"],"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/Code-Hex.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":"2017-03-22T08:42:00.000Z","updated_at":"2018-11-28T00:41:43.000Z","dependencies_parsed_at":"2022-09-02T03:50:38.699Z","dependency_job_id":null,"html_url":"https://github.com/Code-Hex/p5-List-Flatten-XS","commit_stats":null,"previous_names":["code-hex/list-flatten-xs"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fp5-List-Flatten-XS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fp5-List-Flatten-XS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fp5-List-Flatten-XS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fp5-List-Flatten-XS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Code-Hex","download_url":"https://codeload.github.com/Code-Hex/p5-List-Flatten-XS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318747,"owners_count":20272137,"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":["fast","flatten","list","perl","perl5","xs"],"created_at":"2024-09-24T19:53:04.583Z","updated_at":"2025-12-29T04:35:53.627Z","avatar_url":"https://github.com/Code-Hex.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/Code-Hex/p5-List-Flatten-XS.svg?branch=master)](https://travis-ci.org/Code-Hex/p5-List-Flatten-XS)\n# NAME\n\nList::Flatten::XS - [List::Flatten](https://metacpan.org/pod/List::Flatten) with XS\n\n# SYNOPSIS\n\n    use List::Flatten::XS 'flatten';\n\n    my $ref_1 = +{a =\u003e 10, b =\u003e 20, c =\u003e 'Hello'};\n    my $ref_2 = bless +{a =\u003e 10, b =\u003e 20, c =\u003e 'Hello'}, 'Nyan';\n    my $ref_3 = bless $ref_2, 'Waon';\n\n    my $complex_list = [[[\"foo\", \"bar\", 3], \"baz\", 5], $ref_1, \"hoge\", [$ref_2, [\"huga\", [1], \"K\"], $ref_3]];\n\n    # got: [\"foo\", \"bar\", 3, \"baz\", 5, $ref_1, \"hoge\", $ref_2, \"huga\", 1, \"K\", $ref_3];\n    my $flatted = flatten($complex_list);\n\n    # got: (\"foo\", \"bar\", 3, \"baz\", 5, $ref_1, \"hoge\", $ref_2, \"huga\", 1, \"K\", $ref_3);\n    my @flatted_with_array = flatten($complex_list);\n\n    # got: [[\"foo\", \"bar\", 3], \"baz\", 5, $ref_1, \"hoge\", $ref_2, [\"huga\", [1], \"K\"], $ref_3]\n    my $flatted_level = flatten($complex_list, 1);\n\n    # got: ([\"foo\", \"bar\", 3], \"baz\", 5, $ref_1, \"hoge\", $ref_2, [\"huga\", [1], \"K\"], $ref_3)\n    my @flatted_level_with_array = flatten($complex_list, 1);\n\n# DESCRIPTION\n\nList::Flatten::XS is provided flatten routine like [Ruby's Array.flatten](https://ruby-doc.org/core-2.2.0/Array.html#method-i-flatten).\nSo, you can flat complex list with simply or you can flat with specify nested level.\n\n# LICENSE\n\nCopyright (C) CodeHex.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nK \u003cx00.x7f@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fp5-list-flatten-xs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-hex%2Fp5-list-flatten-xs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fp5-list-flatten-xs/lists"}