title: Iterate over 2 nested lists
body: <p>I am writing a weather app and need to go through 2 nested loops. For the <code>return</code> value I want to iterate over the first list, looking at the corresponding second list data. When the data in the second list matches the <code>bool</code>, I need to get data from the corresponding first list. Now I <em>think</em> that my code works... but would like to ask if this is a good way to do this. I am also not sure if this LINQ query will work in general, with even more nested lists. Here's my approach in LINQ:</p>
  
  <pre><code>public static async Task&lt;string&gt; UpdateWeather(string lat, string lon)
  {
      WeatherObject weather = await WeatherAPI.GetWeatherAsync(lat, lon);
  
      var first = (from l in weather.list
                  from w in l.weather
                  where w.id == 800
                  select l.city.name).First();
  
      return first;
  }
  </code></pre>