You should be able to use a Nim seq for your task. Try it harder, and ask again when you really think that it is not possible.
UncheckedArray is generally used only for very low level stuff or when you get a C array from some library. Generally you should avoid using add() and cast, because only without Nim is really Memory safe. I am not even sure if realloc() preserves the old content. If You really like better to alloc your memory manually and use addr() often in ordinary code, then maybe languages like C or Zig are better for you. Well, I guess mratsim is using alloc(), cast and addr() too in all his libs, and maybe it is used in the compiler too. And it is used in languages bindings of course. But that are the low level parts of the Nim language then.
