I come to F # from the C # background and am a little behind different lists and collections. I recently came across a situation where I needed to go from line [] to list T. I ended up using the list to make the cast:
let lines = File.ReadAllLines(@"C:\LinesOText.txt")
let listOLines = [for l in lines -> l]
Is there a more efficient way to convert?
source
share