Crates.io | yugen |
lib.rs | yugen |
version | 0.1.9 |
source | src |
created_at | 2024-03-16 07:26:24.807973 |
updated_at | 2024-03-17 01:43:36.256531 |
description | Writing rust like python |
homepage | |
repository | https://github.com/Allin2000/yugen |
max_upload_size | |
id | 1175477 |
size | 3,716 |
#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);
}
}