There has been a question on the Discord/IRC chat about arrays a few weeks ago, about concatenating const arrays at compile time. Recently, I have also been surprised to see that no procedures exist to set a big array to a specific value like ` newSeqWith <<https://nim-lang.org/docs/sequtils.html#newSeqWith.t%2Cint%2Cuntyped>>`_ const a1 = [1, 2] const a2 = [3, 4, 5] echo a1.concat(a2) # Does not compile, should return [1, 2, 3, 4, 5] Run
I have tried to modify the `concat` source code to accept openarrays instead. It requires knowing the size of the resulting array at CT. Do you think we can determine the size of the resulting array at CT? Can we concatenate these const arrays with a macro, without resorting to the Nim VM?
