title: F# - convert Array to list
body: <p>I am reading a file into an array like follows (note I know this is bad code):</p>
  
  <pre><code>let filename = if argv.[0] != null then argv.[0] else System.Console.ReadLine()
  let data = File.ReadAllLines(filename)
  </code></pre>
  
  <p>I want to perform an F# <code>map</code> onto the data returned in that above line. My problem is that I can only perform <code>map</code> on n F# list, and not the <code>System.String[]</code> that <code>File.ReadAllLines()</code> returns. Can I convert a standard .Net array into an F# list. I'm sure that I could just read the file differently, or labor through manually copying the array contents to a list, but it would be a lot easier if there was a simple way to do this.</p>