{"id":13507172,"url":"https://github.com/seantanly/elixir-combination","last_synced_at":"2026-02-20T16:01:35.979Z","repository":{"id":57484640,"uuid":"49700678","full_name":"seantanly/elixir-combination","owner":"seantanly","description":"A simple combinatorics library providing combination and permutation.","archived":false,"fork":false,"pushed_at":"2018-02-25T07:31:56.000Z","size":91,"stargazers_count":34,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-07T10:46:45.874Z","etag":null,"topics":["elixir-library","permutation"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/seantanly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-15T06:22:31.000Z","updated_at":"2024-07-15T09:19:25.000Z","dependencies_parsed_at":"2022-09-01T23:11:32.147Z","dependency_job_id":null,"html_url":"https://github.com/seantanly/elixir-combination","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/seantanly/elixir-combination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seantanly%2Felixir-combination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seantanly%2Felixir-combination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seantanly%2Felixir-combination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seantanly%2Felixir-combination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seantanly","download_url":"https://codeload.github.com/seantanly/elixir-combination/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seantanly%2Felixir-combination/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29656589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["elixir-library","permutation"],"created_at":"2024-08-01T02:00:25.964Z","updated_at":"2026-02-20T16:01:35.961Z","avatar_url":"https://github.com/seantanly.png","language":"Elixir","readme":"Combination\n========\n[![Build Status](https://travis-ci.org/seantanly/elixir-combination.svg?branch=master)](https://travis-ci.org/seantanly/elixir-combination)\n[![Hex.pm Version](http://img.shields.io/hexpm/v/combination.svg?style=flat)](https://hex.pm/packages/combination)\n\nElixir library to generate combinations and permutations from `Enumerable`.\n\nSee [Examples](#examples).\n\n\n## Documentation\n\nAPI documentation is available at [http://hexdocs.pm/combination](http://hexdocs.pm/combination)\n\n## Adding Combination To Your Project\n\nTo use Combination with your projects, edit your `mix.exs` file and add it as a dependency:\n\n```elixir\ndefp deps do\n  [\n    {:combination, \"~\u003e x.x.x\"},\n  ]\nend\n```\n\n## Examples\n\nTo generate combinations,\n\n```elixir\n\niex\u003e 1..3 |\u003e Combination.combine(2)\n[[3, 2], [3, 1], [2, 1]]\n\n```\n\nTo generate permutations,\n\n```elixir\n\niex\u003e 1..3 |\u003e Combination.permutate\n[[1, 2, 3], [2, 1, 3], [3, 1, 2], [1, 3, 2], [2, 3, 1], [3, 2, 1]]\n\niex\u003e 1..3 |\u003e Combination.permutate(fn p -\u003e Enum.at(p, 0) == 1 end)\n[[1, 2, 3], [1, 3, 2]]\n\n```\n\n## LICENSE\n\nThis software is licensed under [MIT License](LICENSE.md).\n","funding_links":[],"categories":["Algorithms and Data structures"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseantanly%2Felixir-combination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseantanly%2Felixir-combination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseantanly%2Felixir-combination/lists"}