{"id":15648103,"url":"https://github.com/noracodes/permute-rs","last_synced_at":"2025-10-16T03:33:53.088Z","repository":{"id":57654315,"uuid":"500197145","full_name":"NoraCodes/permute-rs","owner":"NoraCodes","description":"Rust library for generating permutations of collections efficiently and deterministically.","archived":false,"fork":false,"pushed_at":"2022-06-05T20:21:56.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T17:04:45.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/NoraCodes.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":"2022-06-05T19:51:21.000Z","updated_at":"2024-08-20T16:49:04.000Z","dependencies_parsed_at":"2022-09-01T01:12:38.305Z","dependency_job_id":null,"html_url":"https://github.com/NoraCodes/permute-rs","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/NoraCodes%2Fpermute-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fpermute-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fpermute-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fpermute-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NoraCodes","download_url":"https://codeload.github.com/NoraCodes/permute-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251722806,"owners_count":21633019,"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-03T12:23:30.856Z","updated_at":"2025-10-16T03:33:53.001Z","avatar_url":"https://github.com/NoraCodes.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# permute\n\n[![crate.io version badge](https://img.shields.io/crates/v/permute)](https://crates.io/crate/permute)\n[![docs.rs status badge](https://img.shields.io/docsrs/permute)](https://docs.rs/permute)\n[![github actions status badge](https://github.com/noracodes/permute-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/noracodes/permute-rs/)\n\nGenerate permutations of a slice in a memory-efficient and deterministic manner, using\n[Heap's algorithm](https://en.wikipedia.org/wiki/Heap%27s_algorithm).\n\nFor instance, printing all the permutations of the sequence [\"red\", \"green\",\n\"blue\"]:\n\n```rust\nuse permute::permutations_of;\n\nfor permutation in permutations_of(\u0026[\"red\", \"green\", \"blue\"]) {\n    for element in permutation {\n        print!(\"{}, \", element);\n    }\n    println!(\"\");\n}\n```\n\nBased on the ordering provided by Heap’s algorithm, it’s guaranteed that this\nprogram will produce:\n\n```text\nred, green, blue,\ngreen, red, blue,\nblue, red, green,\nred, blue, green,\ngreen, blue, red,\nblue, green, red,\n```\n\nThis crate also provides the `ArbitraryTandemControlIter`, which allows\niterating over a slice using a slice of indices - that's how Heap's algorithm is\nimplemented here.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoracodes%2Fpermute-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoracodes%2Fpermute-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoracodes%2Fpermute-rs/lists"}