gratté 2 caractères et une ligne vide, toujours ça de pris
This commit is contained in:
		
							parent
							
								
									db7d66ac25
								
							
						
					
					
						commit
						e71053e3b8
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue