projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1998-01-26 10:55:54 by simonm]
[ghc-hetmet.git]
/
ghc
/
tests
/
array
/
should_run
/
arr008.hs
1
--!!! Array - out-of-range (index,value) pairs
2
--
3
-- supplying a list containing one or more pairs
4
-- with out-of-range index is undefined.
5
--
6
--
7
import Array
8
9
main =
10
let
11
a1 = array (1,0) []
12
a2 = array (0,1) (zip [0..] ['a'..'z'])
13
in
14
print (a1::Array Int Int) >> print a2