I think something like this:
A.filterNot(a => B.exists(b => a._3.exists(str => str.contains(b))))
or
A.filterNot(a => a._3.exists(str => B.exists(b => str.contains(b))))
or shorter, but less readable
A.filterNot(_._3 exists (B exists _.contains))
More Related Contents:
- Convert a Scala list to a tuple?
- Scala list concatenation, ::: vs ++
- Scala: Remove duplicates in list of objects
- How to extend a Scala list to enable slicing not by explicit position but by given predicate/condition
- Difference between a Seq and a List in Scala
- Scala’s ‘::’ operator, how does it work?
- How to convert a java.util.List to a Scala list
- Is there a safe way in Scala to transpose a List of unequal-length Lists?
- Haskell finding mean of cubes of odd members Any ideas? [closed]
- To check whether my list fulfils the parameters set out in nested loop in scala function
- data.frame rows to a list
- Prolog removing unique elements only
- pyspark collect_set or collect_list with groupby
- How to create an Object that outputs a List (Not A Table)
- How to convert a matrix to a list of column-vectors in R?
- How can I exclude multiple folders using Get-ChildItem -exclude?
- How can I delete duplicates in a Dart List? list.distinct()?
- Remove duplicates in list (Prolog)
- Get elements from list of lists
- How to cast an object to a list of generic type in F#
- Splitting a list of integers into a list of positive integers and a list of negative integers
- Creating an R dataframe row-by-row
- Using Haskell’s map function to calculate the sum of a list
- Need to partition a list into lists based on breaks in ascending order of elements (Haskell)
- Why are Arrays invariant, but Lists covariant?
- Extract list of attributes from list of objects in python
- List.shuffle() in Dart?
- How does one enable selections in SwiftUI’s List
- Splitting a list of items into two lists of odd and even indexed items
- Cons element to list vs cons list to element in Scheme