pub fn apply_indexed_unary<T, F: Fn(usize) -> T>(dst: &mut [T], f: F)
Apply the closure f to each element of dst along with its index, and store the result in dst.
f
dst