Function fibbonacci_range

Source
pub fn fibbonacci_range<T, U>(range: T) -> Vec<U>
where T: IntoIterator<Item = U>, U: From<u8> + Add<Output = U> + Sub<Output = U> + Mul<Output = U> + Div<Output = U> + Rem<Output = U> + PartialEq + Copy,
Expand description

Calculate the fibbonacci numbers for a range of numbers. The function may panic if the type U is not large enough to hold the result.

ยงExamples


let x = quickfib::fibbonacci_range(0..10);
assert_eq!(x, vec![0, 1, 1, 2, 3, 5, 8, 13, 21, 34]);