I have a list like
list1 = {2,3,4,5,9}
another list like
list2 = {3,5,10,9}
I want some operation (eg. list.Operation(list2)) so that I can get back list1 as
list1 = {2,4}
Is it the same as doing a NAND operation?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you describe, is a set difference.
In C++, you could use
std::set_difference.