import Data.List main :: IO ()main = print $ let a = [1..10] ; (l:ar) = reverse a in (map snd . zip ar . concat . transpose) [a, ar] ++ [l]
Standard input is empty
[1,9,2,8,3,7,4,6,5,10]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!