main = f [1,2] 1 2 f (h:[]) k = (\x-> print h)f (h:t) k = (\x -> print h >> f (t) k x)
Standard input is empty
1 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!