array_iter_tools

Crates.ioarray_iter_tools
lib.rsarray_iter_tools
version0.2.0
sourcesrc
created_at2021-06-17 10:17:01.832056
updated_at2021-06-18 10:09:35.484013
descriptionModify simple arrays
homepage
repositoryhttps://github.com/conradludgate/array_tools
max_upload_size
id411291
size11,074
Conrad Ludgate (conradludgate)

documentation

README

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]);
Commit count: 4

cargo fmt