arraylib
provides tools for working with arrays. See docs for more.
toml
[dependencies]
arraylib = "0.2"
Compiler support: requires rustc 1.41+
```rust use arraylib::{Array, ArrayMap, ArrayExt}; // Array creation let arr = <[_; 11]>::unfold(1, |it| { let res = *it; *it *= -2; res });
// Mapping let arr = arr.map(|it| it * 2); assert_eq!(arr, [2, -4, 8, -16, 32, -64, 128, -256, 512, -1024, 2048]);
// By-value iterator arr.itermove().foreach(|i: i32| {}) ```