grange

Crates.io Build Status Build status License: MIT

create range numbers in rust

add dependency

sh cargo add grange or toml grange = "0.1.*"

example

```rs use grange::*;

fn main() { for i in range!(1,2,=20){ // equal to (1..=20).stepby(2) println!("{}", i); } for i in range!(10,-1,=1){ // equal to (1..=10).rev() println!("{}", i); } for i in range!(10,-2,=1){ // equal to (1..=10).stepby(2) println!("{}", i); } for i in range!(,3,10){ // equal to (0..10).step_by(3) println!("{}", i); } for i in range!("10..1"){
println!("{}", i); } } ```