What is the Nim equivalence of List.Clear
in languages like java or c# for sequences? I see listed in system the proc setLen
, but im not sure it does what i want. From the description:
f the current length is greater than the new length, s will be truncated. s
Does it mean everytime i set any seq len to 0 it will create a new instance of seq?