> varargs need a single type, yet here we have different types for each array's
> index type
I guess we can not circumvent this, I would write this:
func concat*[T](arrays: varargs[array[any, T]]): auto =
Run
if `any` was a different keyword than `auto` and was not deprecated. (it would
circumvent type checking :( ). I guess there is no way to pass an array of
generics ?
func concat*[array[args.len, Slice | IdxType], T](arrays:
varargs[array[myIdxArray[@i], T]]): auto =
Run
where @i would be a special variable to associate the indexes of the array of
generics with those of varargs ? No matter how I put it, it seems awful to
implement and to read.
Maybe we can leverage `typedesc` instead of `any`
func concat*[T](arrays: varargs[array[typedesc, T]]): auto =
Run