6 Comments
User's avatar
⭠ Return to thread
Timothy Grant's avatar

This was excellent thank you. I have often used sets to dedupe, but never used a dictionary to.

Great tip!

Expand full comment
Stephen Gruppetta's avatar

Sets are the ideal route if you don’t care about order (and all elements are hashable)

Expand full comment