Efficient conversion from String[] to F# List
casting, collections, f#
Solution
Use `List.ofArray` or `Array.toList`.
Problem
I'm coming to F# from a C# background and a little behind on the different lists and collections. I recently ran into a case where I needed to go from a string[] to 'T list. I ended up using list comprehension to do the cast: ``` let lines = File.ReadAllLines(@"C:\LinesOText.txt") // returns a string array let listOLines = [for l in lines -> l] // use list comprehension to get the f# list ``` Is there a more efficient way of doing the conversion?