yugen

Crates.ioyugen
lib.rsyugen
version0.1.9
sourcesrc
created_at2024-03-16 07:26:24.807973
updated_at2024-03-17 01:43:36.256531
descriptionWriting rust like python
homepage
repositoryhttps://github.com/Allin2000/yugen
max_upload_size
id1175477
size3,716
(Allin2000)

documentation

README

#yugen

Writng rust like python

##examples_code:

use yugen::py_range;

fn main() {
    // Example 1: Iterate from 0 to 5 
    println!("Example 1:");
    for a in py_range!(5) {
        println!("{}", a);
    }

    // Example 2: Iterate from 0 to 5 
    println!("Example 2:");
    for b in py_range!(0, 5) {
        println!("{}", b);
    }

    // Example 3: Iterate from 0 to 5
    println!("Example 3:");
    for c in py_range!(0, 5, 1) {
        println!("{}", c);
    }
}
Commit count: 0

cargo fmt