array_iter_tools 0.2.0

Modify simple arrays
Documentation

array_iter_tools

Rust Documentation Latest Version

Modify simple arrays

use array_iter_tools::{ArrayIterator, IntoArrayIterator};
let a = [1, 2, 3, 4];
let b = [5, 6, 7, 8];
let c = a.into_array_iter().zip(b).map(|(a, b)| a + b).collect();
assert_eq!(c, [6, 8, 10, 12]);