légèrement simplifié
This commit is contained in:
		
							parent
							
								
									0fa7141e6a
								
							
						
					
					
						commit
						3e4f7aa8be
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -10,4 +10,4 @@ completeMatrix m = map (\e -> e ++ [""| _ <- [length e..nb]]) m
 | 
			
		|||
 | 
			
		||||
main = do
 | 
			
		||||
    content <- getContents
 | 
			
		||||
    putStr $ unlines $ map unwords $ (L.transpose . (\x -> map formatLine x) . L.transpose . completeMatrix) $ map words $ lines content
 | 
			
		||||
    putStr $ unlines $ map unwords $ L.transpose $ map formatLine $ L.transpose $ completeMatrix $ map words $ lines content
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue