Personal tools

Views

Haskell Quiz/PP Pascal/Solution Ltriant

From HaskellWiki

Basically it builds the list of Pascal's triangle, then spaces the integers out (by adding trailing spaces to each integer), then indents each line by adding spaces onto the head of each list, strips off any trailing spaces then prints it all out.