I often work through more complex problems with codeblocks and then convert to DS once I have all the list levels figured out. Today I noticed that my converted DS wasn’t returning the same number of objects as the nodes. I finally narrowed it down to the last line,
RemoveItemAtIndex. The first codeblock uses the
t1 variable as the list of indices. The second codeblock uses the full function for defining
t1. Those are the only differences.
Why are the codeblocks returning different lists? I’m mostly just curious and making sure it’s not a bug. I can use the defined variable as a workaround for now (assuming that output is actually the correct one.) Unfortunately I’m using a pretty complex dataset so I’m not sure if I’ll be able to create a representative example, but I can try if it becomes necessary.