3 unstable releases
0.2.0 | Jun 18, 2021 |
---|---|
0.1.1 | Jun 17, 2021 |
0.1.0 | Jun 17, 2021 |
#38 in #combine
21 downloads per month
12KB
243 lines
array_iter_tools
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]);
lib.rs
:
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]);
Dependencies
~12KB