Hello Albert,

Saturday, October 25, 2008, 9:02:14 PM, you wrote:

> u = (putStrLn . show . last $ list) >> (putStrLn . show . head $ list)
>    where list = [1..10^8::Int]

i prefer to write it as

main = do let list = [1..10^8]
          print (last list)
          print (head list)

-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to