When I try to iterate through a 2darray of floats and try to compare an element with a float it won't let me. I get the error: "error FS0001: The type 'float' does not match the type 'obj'"
Have tried casting "elm" in the loop but it does not work.
let arr = array2D [[1.0; 2.0; 3.0]
[4.0; 5.0; 6.0]
[7.0; 8.0; 9.0]]
for elm in retval do
if elm = 0.0 then
printfn "yes"
retval
? - Phillip Carter