diff options
Diffstat (limited to 'testsuite/tests/array/should_run/arr012.hs')
-rw-r--r-- | testsuite/tests/array/should_run/arr012.hs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tests/array/should_run/arr012.hs b/testsuite/tests/array/should_run/arr012.hs new file mode 100644 index 0000000000..231d625812 --- /dev/null +++ b/testsuite/tests/array/should_run/arr012.hs @@ -0,0 +1,19 @@ +-- !!! Array map operations +-- +-- +module Main(main) where + +import Data.Array +import Data.Char + +main = + let + a1 = array (0,10) (zip [0..10] ['a'..'z']) + in + print a1 >> + print (fmap (toUpper) a1) >> + print (ixmap (3,8) (+1) a1) + + + + |