loop-code 0.5.2

Code repeating macro
Documentation
1
2
3
4
5
6
7
8
9
use loop_code::repeat;

fn main() {
    repeat!(X /* Default type is usize */ 4 {
        repeat!(Y i32 4 {
            println!("X: {} Y: {}", X, Y);
        });
    });
}