car 0.1.3

std::array::{map, from_fn, try_from_fn} in const
Documentation

car

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!