define array haskell
Haskell's monolithic array creation function forms an array from a pair of bounds and a list of index-value pairs (an association list): array :: (Ix a) => (a,a) -> [(a,b)] -> Array a b. Here, for example, is a definition of an array of the squares of numbers from 1 to 100: