[Haskell-cafe] Examples of using STUArray + help with converting
joelr1 at gmail.com
Fri Oct 14 09:10:37 EDT 2005
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
Or can I just read an array of ints from the double array using the
new polymorphic approach?
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.
More information about the Haskell-Cafe