import Data.Bitsl=[1,2,1,2,3]::[Int]main = print $ foldl xor 0 l
1 2 10 42 11
3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!