
14 Oct
2005
14 Oct
'05
1:10 p.m.
If I don't cast then how do I convert this code? doubleToInts d = runST ( do arr <- newDoubleArray (1,2) writeDoubleArray arr 1 d i1 <- readIntArray arr 1 i2 <- readIntArray arr 2 return (i1,i2)) Or can I just read an array of ints from the double array using the new polymorphic approach? Thanks, Joel On Oct 13, 2005, at 7:09 PM, Tomasz Zielonka wrote:
I also don't yet understand how to cast that double array to read ints from it.
Don't.