Python Forum
Python Forum
>
General
>
News and Discussions
> unique option for sorting?
Full Version:
unique option for sorting?
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
Skaperen
Jun-20-2020, 07:47 PM
is there a way to get the effect of a
unique
option for
sorted()
or
list.sort()
in order to eliminate duplicates?
Gribouillis
Jun-20-2020, 10:01 PM
Compose with
more_itertools.unique_justseen()
.
Python Forum
>
General
>
News and Discussions
> unique option for sorting?