zig-range

May 1, 2021 ยท View on GitHub

loc license discord

A range function to loop over an index without an extra variable

Usage

for (range(10)) |_, i| {
    // 'i' will increment from 0 -> 9
}

Building Example Program

$ zigmod fetch
$ zig build

Built With

  • Zig Master & Zigmod Package Manager

License

MIT

Contents

  1. 1Usage
  2. 2Building Example Program
  3. 3Built With
  4. 4License