Closed mebigfatguy closed 8 months ago
No need to do contains before add, just does two set traversals instead of one.
Makes sense: my only (theoretical) concern would be with LRU-style LinkedHashSet (where ordering could change), but I'm pretty sure that isn't relevant here.
LinkedHashSet
Thanks!
No need to do contains before add, just does two set traversals instead of one.