FSharp.Data icon indicating copy to clipboard operation
FSharp.Data copied to clipboard

CsvProvider a way to not pass all other columns to transform a row

Open zetashift opened this issue 3 years ago • 0 comments

So one can transform a row using Map: http://fsprojects.github.io/FSharp.Data/library/CsvProvider.html#Transforming-CSV-files

But using that method you'd also have to explicitly pass long all other row values, in the correct order. Could a helper method be provided that returns an updated row value given the column name(s) and value(s), without having to explicitly pass along all row values?

One can currently deal with this by making a record type that models your data and then defining a function that converts a myCsv.Row -> MyRecord, but I think this would make Map a lot more ergonomic.

zetashift avatar Mar 11 '22 16:03 zetashift