You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to find what the behaviour of different methods is with respect to duplicate keys, but can't find anything official or obvious.
Some limited testing has shown that duplicates are added to the list rather than replacing existing entries, but without it written into the specification I'm not sure whether I can rely on this or not. I've also noticed that Finding using a key that is duplicated seems to return the SkipListElement at the start of the duplicated block (so you can call Next to get the next, etc), again not sure I can rely on this behaviour or not.
For the record, I'd like duplicates to continue to be added.
The text was updated successfully, but these errors were encountered:
I've been trying to find what the behaviour of different methods is with respect to duplicate keys, but can't find anything official or obvious.
Some limited testing has shown that duplicates are added to the list rather than replacing existing entries, but without it written into the specification I'm not sure whether I can rely on this or not. I've also noticed that
Find
ing using a key that is duplicated seems to return the SkipListElement at the start of the duplicated block (so you can callNext
to get the next, etc), again not sure I can rely on this behaviour or not.For the record, I'd like duplicates to continue to be added.
The text was updated successfully, but these errors were encountered: