LastExceed
02/01/2022, 1:13 PM2
and not 1
?todd.ginsberg
02/01/2022, 1:15 PMhashcode()
as well.Rob Elliot
02/01/2022, 1:39 PMList<T>.distinct()
before - under the hood it's doing this:
ArrayList(LinkedHashSet(this))
Perfectly reasonable implementation, it's just that naively I wouldn't have expected it to be using a HashSet
for the deduplication.