Check if List<List<string>> contains a string

c#, contains, linq, list, string

Solution

if (lists.Any(sublist => sublist.Contains(str)))

Problem

How can I check if any `List<string>`s in a `List` contain a given string? I know how to do this with a loop, but is there a way with LINQ/in one line?

Original source