range1 = [ 0, 2, 4, 6, 8 ];range2 = [ 1, 3, 5, 7, 9 ]; main = print $ map (uncurry (*)) $ zip range1 range2
Standard input is empty
[0,6,20,42,72]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!