{"id":13740712,"url":"https://github.com/giacomocavalieri/non_empty_list","last_synced_at":"2025-08-17T13:10:15.476Z","repository":{"id":169700028,"uuid":"645726279","full_name":"giacomocavalieri/non_empty_list","owner":"giacomocavalieri","description":"✨ Non-empty lists in Gleam","archived":false,"fork":false,"pushed_at":"2024-08-14T06:27:59.000Z","size":54,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-04T15:44:29.480Z","etag":null,"topics":["data-structures"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/non_empty_list/","language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giacomocavalieri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-05-26T09:47:23.000Z","updated_at":"2024-10-20T07:43:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"bdd1714f-5e3b-4f75-a2ee-6ef4954df4a1","html_url":"https://github.com/giacomocavalieri/non_empty_list","commit_stats":null,"previous_names":["giacomocavalieri/non_empty"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/giacomocavalieri/non_empty_list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giacomocavalieri%2Fnon_empty_list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giacomocavalieri%2Fnon_empty_list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giacomocavalieri%2Fnon_empty_list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giacomocavalieri%2Fnon_empty_list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giacomocavalieri","download_url":"https://codeload.github.com/giacomocavalieri/non_empty_list/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giacomocavalieri%2Fnon_empty_list/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264837626,"owners_count":23671063,"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":["data-structures"],"created_at":"2024-08-03T04:00:51.513Z","updated_at":"2025-07-11T15:09:05.912Z","avatar_url":"https://github.com/giacomocavalieri.png","language":"Gleam","funding_links":[],"categories":["Packages"],"sub_categories":["Data Structures"],"readme":"# non_empty_list\n\n[![Package Version](https://img.shields.io/hexpm/v/non_empty_list)](https://hex.pm/packages/non_empty_list)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/non_empty_list/)\n![CI](https://github.com/giacomocavalieri/non_empty_list/workflows/CI/badge.svg?branch=main)\n\n✨ Non-empty lists in Gleam\n\n\u003e ⚙️ This package supports both the Erlang and JavaScript target!\n\n## Installation\n\nTo add this package to your Gleam project:\n\n```sh\ngleam add non_empty_list\n```\n\n## Usage\n\nImport the `non_empty_list` module and write some code!\n\n```gleam\nimport non_empty_list\nimport gleam/int\nimport gleam/io\n\npub fn main() {\n  non_empty_list.new(1, [2, 3, 4])\n  |\u003e non_empty_list.reduce(with: fn(n, m) { n + m })\n  |\u003e int.to_string\n  |\u003e io.println\n}\n```\n\n## Contributing\n\nThis package exposes most of the same functions you'd find in the `gleam/list`\nmodule but it may be missing some useful functions.\n\nIf you think there's a missing function that would fit here, or if you spot a\nbug don't be afraid to open PRs, issues or requests of any kind!\nAny contribution is welcome 💜\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiacomocavalieri%2Fnon_empty_list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiacomocavalieri%2Fnon_empty_list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiacomocavalieri%2Fnon_empty_list/lists"}