"reshape [] to 0" causes invalid array length

Not sure but somehow, when I say "reshape to 0", this happened:
untitled script pic

i mean, why would you want to do that anyway?

it's used in my command evaluator project

Yeah, reshape (anything) to 0 should report an empty list, I guess.

On my iPad, a slightly different error message: AoC 2023 day 23 script pic

Yeah, I'm not surprised, because on my computer it takes several seconds before the (invalid array length) message appears, so it's clearly stepping through some huge block of memory.