pub fn scan<T, F>(a: &mut [T], op: F)where T: Copy, F: Fn(T, T) -> T,
In place implementation of scan over a slice.