https://github.com/nektro/zig-range
A range function to loop over an index without an extra variable.
https://github.com/nektro/zig-range
zig zig-package
Last synced: 3 months ago
JSON representation
A range function to loop over an index without an extra variable.
- Host: GitHub
- URL: https://github.com/nektro/zig-range
- Owner: nektro
- License: mit
- Created: 2021-05-01T09:16:54.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-29T05:42:50.000Z (over 3 years ago)
- Last Synced: 2025-03-25T22:51:31.231Z (3 months ago)
- Topics: zig, zig-package
- Language: Zig
- Homepage:
- Size: 3.91 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - zig-range🗒️A range function to loop over an index without an extra variable
README
# zig-range

[](https://github.com/nektro/zig-range/blob/master/LICENSE)
[](https://discord.gg/P6Y4zQC)A range function to loop over an index without an extra variable
## Usage
```zig
for (range(10)) |_, i| {
// 'i' will increment from 0 -> 9
}
```## Building Example Program
```
$ zigmod fetch
$ zig build
```## Built With
- Zig Master & [Zigmod Package Manager](https://github.com/nektro/zigmod)## License
MIT