main = print (take 5 (map (2*) [1..]))
Standard input is empty
[2,4,6,8,10]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!