1
$\begingroup$

This question already has an answer here:

I have two Lists: L = {1,2,3,4,5} and K = {1,4}.

I would like to delete the elements of K (1,4) from the List L, so that the resulting List will be R = {2,3,5}.

Please can someone assist and help?

$\endgroup$

marked as duplicate by Kuba list-manipulation Dec 11 '17 at 14:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    $\begingroup$ Check Complement, DeleteCases and friends. $\endgroup$ – Kuba Dec 11 '17 at 14:14
  • $\begingroup$ Oh thank you very much @Kuba! I will try to search better next time! Please how can I remove my question? $\endgroup$ – Ni Ko Dec 11 '17 at 14:25
  • $\begingroup$ You don't need too. It will stay here as a road sign to the main topic. $\endgroup$ – Kuba Dec 11 '17 at 14:28

Browse other questions tagged or ask your own question.