constant macro arrays
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# `car`

![forthebadge](https://forthebadge.com/api/badges/generate?panels=2&primaryLabel=+maintained&secondaryLabel=NO%21&primaryBGColor=%231b80a0&primaryTextColor=%23FFFFFF&secondaryBGColor=%23e70e0e&secondaryTextColor=%23FFFFFF&primaryFontSize=12&primaryFontWeight=900&primaryLetterSpacing=2&primaryFontFamily=Verdana&primaryTextTransform=uppercase&secondaryFontSize=12&secondaryFontWeight=900&secondaryLetterSpacing=2&secondaryFontFamily=Verdana&secondaryTextTransform=uppercase&scale=0.6)

macro based array manipulation constant techniques

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

```rust
// 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.