{"id":16930158,"url":"https://github.com/alexpantyukhin/combinations","last_synced_at":"2025-04-11T18:31:56.699Z","repository":{"id":57500758,"uuid":"158912874","full_name":"alexpantyukhin/combinations","owner":"alexpantyukhin","description":"Go lang combination package.","archived":false,"fork":false,"pushed_at":"2018-11-29T20:30:05.000Z","size":13,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T14:21:36.172Z","etag":null,"topics":["cartesian-product","combinations","golang","itertools","permutation","product"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexpantyukhin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-24T07:27:37.000Z","updated_at":"2023-08-30T09:55:22.000Z","dependencies_parsed_at":"2022-08-31T11:02:46.490Z","dependency_job_id":null,"html_url":"https://github.com/alexpantyukhin/combinations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpantyukhin%2Fcombinations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpantyukhin%2Fcombinations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpantyukhin%2Fcombinations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpantyukhin%2Fcombinations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexpantyukhin","download_url":"https://codeload.github.com/alexpantyukhin/combinations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248458582,"owners_count":21107109,"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":["cartesian-product","combinations","golang","itertools","permutation","product"],"created_at":"2024-10-13T20:41:02.387Z","updated_at":"2025-04-11T18:31:56.674Z","avatar_url":"https://github.com/alexpantyukhin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Combinations\nA package with combinations functions from [python itertools](https://docs.python.org/3/library/itertools.html).\nFor now the following iterators are implemented :\n   - [x] Product (the [Cartesian product](https://en.wikipedia.org/wiki/Cartesian_product)).\n   - [x] Permutation (basing on the `Product` result).\n   - [x] Combination.\n   - [x] Combination with replacement.\n\n# Installation\nJust `go get` this repository with the following way:\n\n```\ngo get github.com/alexpantyukhin/combinations\n```\n\n# Usage\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/alexpantyukhin/combinations\"\n)\n\nfunc main() {\n    inter := []interface{}{0, 1, 2}\n    product, _ := combinations.NewProduct(inter, 3)\n\n    for product.Next() {\n        fmt.Println(product.Value())\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexpantyukhin%2Fcombinations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexpantyukhin%2Fcombinations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexpantyukhin%2Fcombinations/lists"}