Extra functionality for Rust arrays.
The trait Array
provides fixed-size array generics:
```rust use array_ext::Array;
fn average
assert!((average([8.96, 3.14, 17.9]) - 10.0).abs() < f32::EPSILON);
``
Some methods, like
zip_with, are provided by the sized
ArrayNtrait that allows doing full
[T; N] -> [U; N]mapping. The base
Arraytrait can only do
[T; N] -> [T; N]` mapping.
This was originally made as workaround for the lack of const generics, but since v0.4 everything is implemented using const generics.