I've got some data manipulation code which spits out csv at the end.
I started upgrading it to add units of measure everywhere, but I now have a problem with my csv function:
val WriteCSV : string -> 'a list array -> 'b list -> string -> unit
(the parameters are fileName, column array, column headers, separator)
Where I previously sent [|s;x;y|] to WriteCSV, I now have a problem, because I can't send [|skm; xmm; ymm|].
I tried writing a function for generically removing units of measure, but it doesn't work.
let removeUnit (n:float<_>) = n/1.0<_>
My questions are:
- Why doesn't it work?
- Can it be made to work?
- Is there another way to solve this particular problem?