stepper 0.1.0

Provides range iterators that step by values other than one (for use until `std::iter::StepBy` is stable)
Documentation
stepper-0.1.0 has been yanked.

Stepper

Rust library for range iterators that step by values other than one. Designed to be used until std::iter::StepBy becomes stable.

Example

extern crate stepper;

#[macro_use]
use stepper::Stepper;

fn main() {
    // Prints "0", "2", "4"
    for i in step!(0 => 5; 2) {
        println!("{}", i);
    }

    // Prints "8", "5", "2"
    for i in step!(8 => 0; -3) {
        println!("{}", i);
    }
}

Numerical Types

Currently only supports i64. If you want to use Stepper with some other numerical type, open an issue and I'll implement it when I get a chance.