$ inutile avec interact

master
Karchnu 2016-01-23 14:11:47 +01:00
parent 147b155930
commit 63a602b979
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
import Data.List
main = interact $ (unlines . map unwords . transpose . map (pad ' ') . transpose . pad "" . map words . lines)
main = interact (unlines . map unwords . transpose . map (pad ' ') . transpose . pad "" . map words . lines)
where pad v m = map (\e -> e ++ replicate ((maximum $ map length m)- length e) v) m