Basic Algorithm Scripting: Slice and Splice (HELP with aspect of directions)

Use flat() and turn it a single level array.

you shouldn’t change the input arrays if I remember correctly. your code does that instead