STArray error example
newSTArray :: Ix i => (i, i) -> e -> ST s (STArray s i e) newSTArray = newArray Β test :: String test = runST $ do Β array <- newSTArray (0, 10 :: Int) (0 :: Int) Β b <- readArray array 11 Β return $ show b
newSTArray :: Ix i => (i, i) -> e -> ST s (STArray s i e) newSTArray = newArray Β test :: String test = runST $ do Β array <- newSTArray (0, 10 :: Int) (0 :: Int) Β b <- readArray array 11 Β return $ show b
Comments
0 B
|0 π
/0 π
0 B
|π
/π