[Haskell-cafe] How to use STArray?

Tomasz Zielonka tomasz.zielonka at gmail.com
Fri Aug 26 12:24:32 EDT 2005


On Fri, Aug 26, 2005 at 04:22:11PM +0100, Bayley, Alistair wrote:
> makeArray :: Int -> Int -> a -> ST s (STArray s Int a)
> makeArray lower upper val = newArray (-lower, upper) val
                                        ^
Is negation of lower intentional here?

Best regards
Tomasz


More information about the Haskell-Cafe mailing list