Multiplication tables: Difference between revisions

m
(→‎{{header|Haskell}}: map -> fmap)
Line 2,257:
table n = concat <$> xs
where
xs = (\x -> fmt x : drop 2 pad : (
(\y -> if y < x then pad else fmt $ x * y)
<$> range))
<$> range
where
fmt e = drop (length s) (pad ++ s)
9,659

edits