title: F# - Converting nested for-loops to a functional style
body: <p>I'm trying to convert my nested for-loops to a more functional style. </p>
  
  <p>I've been messing around with pipelining, sequences, and arrays, but to no avail.</p>
  
  <p>Here's what I have:</p>
  
  <pre><code>let allCarrierCodes = new List&lt;string&gt;()    
  for result in getAllCarrierCodesResults do
          for carrierCode in result do
              allCarrierCodes.Add(carrierCode.ToString())
  </code></pre>
  
  <ul>
  <li><code>getAllCarrierCodesResults</code> is a seq of type "obj list"</li>
  </ul>
  
  <p>What's a nice functional way to re-write the nested loops? </p>
  
  <p>Thanks.</p>