[Haskell-cafe] Examples of using STUArray + help with converting
joelr1 at gmail.com
Fri Oct 14 09:47:28 EDT 2005
I must be missing something because I don't think the code below
converts a double.
Then there's this other bit to consider:
intsToDouble (i1,i2) = runST (
do arr <- newDoubleArray (1,2)
writeIntArray arr 1 i1
writeIntArray arr 2 i2
readDoubleArray arr 1)
I'm just looking for the new syntax, the one above is deprecated.
On Oct 14, 2005, at 2:31 PM, Ketil Malde wrote:
> Uh, what is wrong with divMod?
> *Main Data.Word> (10000000000::Word64) `divMod` (2^32)
More information about the Haskell-Cafe