gratté 2 caractères et une ligne vide, toujours ça de pris

master
karchnu 2016-01-21 18:33:31 +01:00
parent db7d66ac25
commit e71053e3b8
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
import Data.List as L
main = do content <- getContents
putStr $ unlines $ map unwords $ L.transpose $ map (completeMatrix ' ') $ L.transpose $ (completeMatrix "") $ map words $ (lines content)
putStr $ unlines $ map unwords $ L.transpose $ map (completeMatrix ' ') $ L.transpose $ completeMatrix "" $ map words $ lines $ content
where completeMatrix v m = map (\e -> e ++ [v| _ <- [length e .. (\ x -> maximum $ map length x) m ]]) m