title: F# - How to populate an System.Collections.Generic.List from array
body: <p>I have following code that populates a System.Collections.Generic.List I don't like it so I was wondering if there is a better way to do this.</p>
  
  <pre><code>let getDirectories = 
          Directory.GetDirectories(_baseFolder)
  let languagesList = new System.Collections.Generic.List&lt;string&gt;()
  Seq.cast getDirectories 
  |&gt; Seq.map(fun dir -&gt; (new DirectoryInfo(dir)).Name) 
  |&gt; fun range -&gt; languagesList.AddRange(range)
  </code></pre>