From df467a8133aac0482f5721edbe77f40be74b821d Mon Sep 17 00:00:00 2001
From: Karchnu <karchnu@karchnu.fr>
Date: Sat, 23 Jan 2016 01:36:46 +0100
Subject: [PATCH] completeMatrix => pad

---
 haskell/columnv7.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/haskell/columnv7.hs b/haskell/columnv7.hs
index 9d50fad..728b891 100644
--- a/haskell/columnv7.hs
+++ b/haskell/columnv7.hs
@@ -1,3 +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
+main = do 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