I probably missed an important information about swift. I have a map contains a key / swift array pair. I changed the array and the array inside the map was not changed. Cou
As Code Different says, Arrays in Swift are structs, so you are storing a copy of the array.
If you really want to keep using Swift arrays, I recommend to fill the array "list" first and then copy to "map". That should work for you.