How to edit a value inside of a collection

What I am looking for is just as the title says
5 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Parogo_72
Parogo_722y ago
collection.set(key, value)
DanielBA
DanielBA2y ago
I have tried it, but all it does is set a new value with the same key
Parogo_72
Parogo_722y ago
Collections cant have duplicated keys So what you said doesnt make sense
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View