Hi folks, I'm reading about F# and trying to apply it to my daily job.
I was already been able to load a CSV file with the help of
FSharp.Data from NuGet, but I did it a imperative style, I think. Now I'm trying to apply functional constructs, tried the following:
open System open System.IO open FSharp.Data [<EntryPoint>] let main argv = let data = argv. |> Path.Combine Environment.CurrentDirectory |> CsvFile.Load printfn "%A" data.Headers 0
What I'm missing here?
In my head
argv. is passed to the result of
Path.Combine Environment.CurrentDirectory which curried already have the current dir as the first
path then the combined result is given to
Did I get
|> and curring wrong?
CsvFile.Loadis probably ok