arr006.hs 215 Bytes
Newer Older
1
2
3
4
-- !!! Array - empty arrays
-- 
-- print a couple of them to try to expose empty arrays 
-- to a GC or two.
5
import Data.Array
6
7
8
9
10
11

main =
 let 
  a1 = array (1,0) []
 in
 print (take 300 $ repeat (a1 :: Array Int Int))