constfoo=@["aaa","bbb","ccc"]procmyTuple:tuple[n:int,bar:seq[string]]=result.n=42result.bar=newSeqOfCap[string](foo.len)forfinfoo:result.bar.add(f)# It works if you change the below `const` to `let`const(n,bar)=myTuple()doAssertbar==@["aaa","bbb","ccc"]