Crate array_iter_tools[][src]

Expand description

Modify simple arrays

use array_tools::ArrayIterator;
let a = [1, 2, 3, 4];
let b = [5, 6, 7, 8];
let c = a.zip_array(b).map_array(|(a, b)| a + b).collect_array();
assert_eq!(c, [6, 8, 10, 12]);

Structs

Map

Implementation behind ArrayIterator::map_array

Zip

Implementation behind ArrayIterator::zip_array

Traits

ArrayIterator

Similar to Iterator, ArrayIterator is an iterator over constant sized arrays