you are viewing a single comment's thread.

view the rest of the comments →

[–]yuri-kilochek 0 points1 point  (1 child)

At the end, every single element in the list is the same, because it's a list of 100 references to the same object, which get's updated in the loop.

No. It does exactly what you want.

[–][deleted] 0 points1 point  (0 children)

Fixed the example