[Haskell-cafe] Examples of using STUArray + help with converting
code
Joel Reymont
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
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/
More information about the Haskell-Cafe
mailing list