Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
undup
#2
set(iterable) is first that comes to mind, but as always - the devil is in the details:
- what type of elements are there (are they hashable), any nested structures and how to deal with such if present, do you keep the order, etc.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
undup - by Skaperen - May-10-2019, 06:56 AM
RE: undup - by buran - May-10-2019, 07:15 AM
RE: undup - by buran - May-10-2019, 07:16 AM
RE: undup - by Skaperen - May-10-2019, 11:49 PM
RE: undup - by perfringo - May-11-2019, 05:43 AM
RE: undup - by Skaperen - May-12-2019, 08:23 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020