import Text.Printf.
, , . Haskellers , , . h x = f (g x) h = f . g.
Int; (Integral a) => a .
foldl (++) x xs == concat $ x : xs: , concat , .
, foldr, , (++) is – Haskell , ( ).
, unwords unlines intercalate " " concat . map (++ "\n") , " " " ( )"; .
, w = length $ takeWhile (<= n) $ iterate (* b) 1, , . , , w = length $ toBase b n.
concat ( (replicate ((w+1)* (n+2)) "-" ) == replicate ((w+1) * (n+2)) '-' – , , .
concat spaces. Text.Printf printf "%*s " w digits?