foldl ( \ a b -> 2*a + b) 0 [1,0,0,1,0]
Standard input is empty
[1 of 1] Compiling Main ( prog.hs, prog.o ) prog.hs:1:39: parse error (possibly incorrect indentation)
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!