constant macro arrays
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..35d66ce --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# `car` + +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!
\ No newline at end of file |