{"id":29866571,"url":"https://github.com/insolor/zig-itertools","last_synced_at":"2025-08-19T08:33:50.696Z","repository":{"id":306754951,"uuid":"1027101457","full_name":"insolor/zig-itertools","owner":"insolor","description":"WIP. Implementation of some useful iterators in Zig. Inspired by Python's itertools module.","archived":false,"fork":false,"pushed_at":"2025-07-27T11:02:15.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-27T13:04:43.725Z","etag":null,"topics":["zig","zig-library","zigang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/insolor.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-27T10:13:39.000Z","updated_at":"2025-07-27T11:44:51.000Z","dependencies_parsed_at":"2025-07-27T13:04:45.142Z","dependency_job_id":"43b043de-4e49-48d6-b47b-024cd1c40621","html_url":"https://github.com/insolor/zig-itertools","commit_stats":null,"previous_names":["insolor/zig-itertools"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/insolor/zig-itertools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insolor%2Fzig-itertools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insolor%2Fzig-itertools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insolor%2Fzig-itertools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insolor%2Fzig-itertools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insolor","download_url":"https://codeload.github.com/insolor/zig-itertools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insolor%2Fzig-itertools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271121786,"owners_count":24702874,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["zig","zig-library","zigang"],"created_at":"2025-07-30T13:00:44.832Z","updated_at":"2025-08-19T08:33:50.675Z","avatar_url":"https://github.com/insolor.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zig Itertools\n\n[![Zig 0.14.0, 0.14.1, master](https://img.shields.io/badge/Zig-0.14.0%20%7C%200.14.1%20%7C%20master-color?logo=zig\u0026color=%23f3ab20)](https://github.com/ziglang/zig) \u003c!-- see zig tag examples at https://github.com/KurtWagner/what-the-zig --\u003e\n[![zig build test](https://github.com/insolor/zig-collections/actions/workflows/zig-build-test.yml/badge.svg)](https://github.com/insolor/zig-collections/actions/workflows/zig-build-test.yml)\n\n\u003e [!WARNING]  \n\u003e WORK IN PROGRESS\n\nImplementation of some useful data structures in Zig. Inspired by Python's [`itertools`](https://docs.python.org/3/library/itertools.html) module.\n\nImplemented so far:\n\n- `ChainIterator` - \"glues\" two iterator in one, returns their elements in succession\n- `SliceIterator` - iterates over a slice\n- `EmptyIterator` - emits no elements. Implemented only for testing purposes.\n\n## Installation\n\n1. In the root directory of your project, run the following command to add `zig_itertools` to your `build.zig.zon` file (replace 0.0.1 with the latest release number):\n\n    ```bash\n    zig fetch --save https://github.com/insolor/zig-itertools/archive/refs/tags/0.0.1.zip\n    ```\n\n    Replace `main` in the URL with the tag you want to use.\n\n2. Add zig_itertools as a dependency module in your `build.zig` file, example:\n\n    ```zig\n    const zig_itertools = b.dependency(\"zig_itertools\", .{});\n    exe.root_module.addImport(\"zig_itertools\", zig_itertools.module(\"zig_itertools\"));\n    ```\n\nAfter that, you'll be able to import `zig_itertools` namespace from your code:\n\n```zig\nconst zig_itertools = @import(\"zig_itertools\");\nconst ChainIterator = zig_itertools.ChainIterator;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsolor%2Fzig-itertools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsolor%2Fzig-itertools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsolor%2Fzig-itertools/lists"}