fork(1) download
  1. import Data.List
  2.  
  3. main :: IO ()
  4. main = print $ let a = [1..10] ; (l:ar) = reverse a in (map snd . zip ar . concat . transpose) [a, ar] ++ [l]
Success #stdin #stdout 0s 6236KB
stdin
Standard input is empty
stdout
[1,9,2,8,3,7,4,6,5,10]