{"id":21930429,"url":"https://github.com/desdaemon/for_let","last_synced_at":"2025-06-10T14:35:23.857Z","repository":{"id":65035693,"uuid":"581051776","full_name":"Desdaemon/for_let","owner":"Desdaemon","description":"Syntax sugar for a for-loop + pattern binding","archived":false,"fork":false,"pushed_at":"2022-12-22T06:50:51.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T10:33:02.771Z","etag":null,"topics":["fun","macros","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Desdaemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-12-22T06:27:44.000Z","updated_at":"2022-12-22T06:28:25.000Z","dependencies_parsed_at":"2023-01-01T02:07:55.282Z","dependency_job_id":null,"html_url":"https://github.com/Desdaemon/for_let","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Ffor_let","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Ffor_let/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Ffor_let/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Ffor_let/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Desdaemon","download_url":"https://codeload.github.com/Desdaemon/for_let/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Ffor_let/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259093358,"owners_count":22804163,"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":["fun","macros","rust"],"created_at":"2024-11-28T23:09:22.917Z","updated_at":"2025-06-10T14:35:23.829Z","avatar_url":"https://github.com/Desdaemon.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# for_let\n\n[![Crates.io](https://img.shields.io/crates/v/for_let?style=for-the-badge)](https://crates.io/crates/for_let)\n[![docs.rs](https://img.shields.io/docsrs/for_let?style=for-the-badge)](https://docs.rs/for_let/latest/for_let/)\n\nThat one syntax sugar library you (may have) wished you wrote yourself.\n\nThis library provides the `for_let!` macro, so you can write code like this:\n\n```rust\nfor_let!(Some(Complex(Pattern(foo))) in iteratee {\n    // do stuff\n});\n```\n\nWhich is just sugar for this:\n\n```rust\nfor el in iteratee {\n    match el {\n        Some(Complex(Pattern(foo))) =\u003e {\n            // do stuff\n        }\n        _ =\u003e {}\n    }\n}\n```\n\nAccepts all patterns that are legal in a match arm. How Pythonic!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesdaemon%2Ffor_let","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesdaemon%2Ffor_let","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesdaemon%2Ffor_let/lists"}