Improve solution 12 to be more idiomatic.
Improve solution 12 to be more idiomatic.

concatMap is pretty cool: it's equivalent to foldr (++) []. Also
replicate is kind of like take $ repeat.

alisdair/H99P