History of Idiom 119 > diff from v40 to v41
Edit summary for version 41 by programming-idioms.org:
[Go] Comments: T is pointer type
[Go] Comments: T is pointer type
↷
Version 40
2018-04-11, 21:34:44
Version 41
2018-04-11, 21:35:32
Idiom #119 Deduplicate list
Remove duplicates from list x.
Explain if original order is preserved.
Idiom #119 Deduplicate list
Remove duplicates from list x.
Explain if original order is preserved.
Comments bubble
Discarded slot are set to nil, to avoid a memory leak.
This is O(n).
Comments bubble
Use this if T is a pointer type or reference type.
Discarded slots are set to nil, to avoid a memory leak.
This is O(n).