diff --git a/haskell/columnv7.hs b/haskell/columnv7.hs new file mode 100644 index 0000000..9d50fad --- /dev/null +++ b/haskell/columnv7.hs @@ -0,0 +1,3 @@ +import Data.List +main = do interact $ (unlines . map unwords . transpose . map (completeMatrix ' ') . transpose . completeMatrix "" . map words . lines) + where completeMatrix v m = map (\e -> e ++ replicate ((maximum $ map length m)- length e) v) m