
5 Feb
2015
5 Feb
'15
7:35 a.m.
On Thu, 05 Feb 2015 13:25:16 +0100
Roelof Wobben
Another question : how can I display the array ?
putStrln works only for strings,
Yep, so you need to convert it to a string and putStrLn that. Kindly enough typing ":i []" into ghci tells you, that lists have an instance for "show". Anonther option would be to convert every single list element to a string and putStrLn that. "map" comes in handy here (or mapM_ if you directly want to use print instead of putStrLn . show). best, Max