Generate function to build a static array from vector of vector

I would just use SizedArray to hint this:

foo(a, ::Val{N}) where N = reduce(hcat, SizedVector{N}(a))
1 Like