I have two lists:
val list1 = List(\"word1\",\"word2\",\"word2\",\"word3\",\"word1\") val list2 = List(\"word1\",\"word4\")
I want to remove al
You could try this:
val list1 = List("word1","word2","word2","word3","word1") val list2 = List("word1","word4") println(list1.filterNot(list2.contains(_)))