KevinRansom on string-interp
Remove isAppTy (#9282) Merge pull request #9288 from d… (compare)
KevinRansom on tasks
Remove isAppTy (#9282) Merge pull request #9287 from d… (compare)
KevinRansom on dev16.7
Reuse genericArgsLength as sugg… Remove double list yielding (#9… Merge pull request #9285 from d… (compare)
KevinRansom on fsharp5
Remove isAppTy (#9282) Merge pull request #9289 from d… (compare)
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