On Tue, Mar 30, 2021 at 1:40 AM Eric Cook <l...@gmx.com> wrote: > Its just when populating that array dynamically with another array > if that second array didn't contain `v1' hypothetically, the array gets > shifted to > > a=( [k1]=k2 [v2]=k3 [v3]= ) > which i would imagine to be unexpected for the author of the code and > would rather > it error out instead of chugging along. >
Just checking the parity can never help if there's a risk of values missing from the middle of the list. What if there's two values missing? You could be left with (k1 v1 k2 k3) or (k1 v1 k2 v3).