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.
--
http://wagerlabs.com/
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe