légèrement simplifié

This commit is contained in:
karchnu 2016-01-16 01:24:46 +01:00
parent 0fa7141e6a
commit 3e4f7aa8be

View File

@ -10,4 +10,4 @@ completeMatrix m = map (\e -> e ++ [""| _ <- [length e..nb]]) m
main = do
content <- getContents
putStr $ unlines $ map unwords $ (L.transpose . (\x -> map formatLine x) . L.transpose . completeMatrix) $ map words $ lines content
putStr $ unlines $ map unwords $ L.transpose $ map formatLine $ L.transpose $ completeMatrix $ map words $ lines content