{"id":19513772,"url":"https://github.com/nelsbrock/iter_accumulate","last_synced_at":"2026-06-07T21:31:29.890Z","repository":{"id":49687205,"uuid":"517830843","full_name":"nelsbrock/iter_accumulate","owner":"nelsbrock","description":"An iterator adaptor for Rust that accumulates the elements from the base iterator using the provided closure.","archived":false,"fork":false,"pushed_at":"2024-04-03T17:19:17.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T12:13:18.234Z","etag":null,"topics":["accumulate","accumulator","fold","iterator","rust"],"latest_commit_sha":null,"homepage":"https://lib.rs/crates/iter_accumulate","language":"Rust","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/nelsbrock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"publiccode":null,"codemeta":null}},"created_at":"2022-07-25T21:50:45.000Z","updated_at":"2024-04-04T17:59:05.000Z","dependencies_parsed_at":"2024-11-10T23:42:48.973Z","dependency_job_id":null,"html_url":"https://github.com/nelsbrock/iter_accumulate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsbrock%2Fiter_accumulate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsbrock%2Fiter_accumulate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsbrock%2Fiter_accumulate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsbrock%2Fiter_accumulate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nelsbrock","download_url":"https://codeload.github.com/nelsbrock/iter_accumulate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240762512,"owners_count":19853495,"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":["accumulate","accumulator","fold","iterator","rust"],"created_at":"2024-11-10T23:32:38.119Z","updated_at":"2026-06-07T21:31:29.847Z","avatar_url":"https://github.com/nelsbrock.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iter_accumulate\nAn iterator adaptor for Rust that accumulates the elements from the base iterator\nusing the provided closure.\n\n## Example\n\n```rust\nuse iter_accumulate::IterAccumulate;\n\nlet input = [1, 2, 3, 4, 5];\nlet mut iter = input.iter().accumulate(1, |acc, i| acc * i);\n\nassert_eq!(iter.next(), Some(1));\nassert_eq!(iter.next(), Some(2));\nassert_eq!(iter.next(), Some(6));\nassert_eq!(iter.next(), Some(24));\nassert_eq!(iter.next(), Some(120));\nassert_eq!(iter.next(), None);\n```\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0\n  ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license\n  ([LICENSE-MIT](LICENSE-MIT) or \u003chttps://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnelsbrock%2Fiter_accumulate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnelsbrock%2Fiter_accumulate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnelsbrock%2Fiter_accumulate/lists"}