Function iter_num_tools::arange[][src]

pub fn arange<R, F>(range: R, step: F) -> Arange<F> where
    (R, F): Into<ArangeImpl<F>>, 
Expand description

Create a new iterator over the range, stepping by step each time This allows you to create simple float iterators

use iter_num_tools::arange;

let it = arange(0.0..2.0, 0.5);
assert!(it.eq(vec![0.0, 0.5, 1.0, 1.5]));