Macro peroxide::seq

source ·
macro_rules! seq {
    ( $start:expr, $end:expr, $step:expr ) => { ... };
    ( $start:expr; $end:expr; $step:expr ) => { ... };
}
Expand description

R like seq macro

§Examples

#[macro_use]
extern crate peroxide;
use peroxide::fuga::*;

fn main() {
    assert_eq!(seq!(1,10,1), c!(1,2,3,4,5,6,7,8,9,10));
    assert_eq!(seq!(1,10,1), seq!(1;10;1));
}