Komag
7 years agoRoku Guru
roAssociativeArray Appen() doesn't append nested roAssociativeArrays!
I've discovered, to my dismay, that when you append one AA (roAssociativeArray) to another one, if it finds any same keys it will REPLACE it! Yes, I know that's exactly what it says it will do, so good for it for being literal, but I just figured if it found a nested AA it would nicely Append() it, rather than replace it.
This is what I want, or maybe a different but similar command, such as NestAppend() or something.
As it is, I have to manually deal with this, and for now, thankfully only one layer, so I can go through each key/value in the top AA and Append() each of those one at a time, with a big FOR EACH loop.
This is what I want, or maybe a different but similar command, such as NestAppend() or something.
As it is, I have to manually deal with this, and for now, thankfully only one layer, so I can go through each key/value in the top AA and Append() each of those one at a time, with a big FOR EACH loop.