Function peroxide::util::non_macro::seq

source ·
pub fn seq<S, T, U>(start: S, end: T, step: U) -> Vec<f64>
where S: Into<f64> + Copy, T: Into<f64> + Copy, U: Into<f64> + Copy,
Expand description

R like seq function

§Example

use peroxide::fuga::*;

let a = seq(1, 10, 2);
assert_eq!(a, vec![1f64,3f64,5f64,7f64,9f64]);

let b = seq(1, 1, 1);
assert_eq!(b, vec![1f64]);