import Data.Semigroup main = getFirst $ (First x) <> (First y) x = putStrLn "x" >> return 42y = putStrLn "y" >> return 1337
1 2 10 42 11
x
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!