hexga_array

Crates.iohexga_array
lib.rshexga_array
version0.0.11-beta.3
created_at2025-03-28 17:26:06.752243+00
updated_at2025-08-12 19:05:53.129304+00
descriptionA crate that impl trait / new functions for array.
homepagehttps://github.com/Thomas-Mewily/hexga
repositoryhttps://github.com/Thomas-Mewily/hexga
max_upload_size
id1609902
size17,326
Mewily (Thomas-Mewily)

documentation

README

🚧 Warning: Experimental Crate! 🚧

This crate is currently in beta and experimental.
It is subject to breaking changes in future releases.
Use it at your own risk, and keep in mind that the API may change in future versions.

HexGa Array

Define useful extensions methods on array, like :

  • map_with, (because there is no zip fn on array https://github.com/rust-lang/rust/pull/112096 because zip is "eager" : doing array1.zip(array2).map() is bad, is is better to have only one function map_with, that will do both at once to avoid changing the array layout in memory for an array of tuple. Doing the operation on 2 different array allow the compiler to use SIMD instruction)

  • all_with, any_with

  • get, get_mut, set, with, replace...

use hexga_array::*;

assert_eq!([1,2,3].map_with([3,2,1],|a,b| a + b), [4,4,4]);

Main Hexga crate

Check hexga : https://crates.io/crates/hexga if you are interested in a quick start, it regroup multiple hexga crates.

Commit count: 338

cargo fmt