constant macro arrays
-rw-r--r--
10
-rw-r--r--
484
-rw-r--r--
1062
-rw-r--r--
1026
d---------
README.md

car

forthebadge

macro based array manipulation constant techniques

you wanted a quick LUT in const? here you go!

// please note that this is in no way performant or a good idea.
let squares: [usize; 0xffffffff] = car::from_fn!(|i| i * 2);

completely stable!

for once!

notice

with the advent of const closures in nightly rust, this crate is now only useful if you're on stable. any nightly users should switch to using x.map(const |x| ..) or from_fn(const |i| ..) instead.

as a result, this crate is now deprecated.