How can you remove duplicated items from a list of vectors, leaving only one of each item?

  • $\begingroup$ Try List -> List Boolean Operations $\endgroup$ – Serge L Aug 9 at 8:25

You can use this expression: [i for n, i in enumerate(x) if i not in x[:n]]

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.