Strange access to data class

Right, I didn’t mentionned that

alone, the first outup work well and reply [1,2,3] but the same line when followed by the method call and an second output doesn’t work as expected.

By the way, at the end of the code, the values are correct but I don’t understand the behavior and it might be usefful to when debbuging.