Initializing const array of structs with sparse runtime information

Maybe you can try out a BoundedArray?

It sounds like what you’re describing. You give it some max size at comptime, then initialize it with some (potentially smaller) size at runtime.

3 Likes