with the following piece of code.
type DigitRecord = { Label:int; Pixels:int[] }
let dataRecords =
dataNumbers
|> Array.map (fun record -> {Label = record.[0]; Pixels = record.[1..]})
I got a error message with F# interactive 4.1 on mono 4.8. It may be the internal error of mono,
I did a workaround to bypass the error, it seem it works now.
type DigitRecord = { Label:int; Pixels:int[] }
let x = { Label = 1 ; Pixels = [| 1; 2; 3 |]}
let dataRecords =
dataNumbers
|> Array.map (fun record -> {Label = record.[0]; Pixels = record.[1..]})