Skip to content

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

License

Notifications You must be signed in to change notification settings

nektro/zig-range

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-range

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

License

MIT

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project