Munchausen numbers: Difference between revisions
Content added Content deleted
m (→{{header|Haskell}}: (inlined)) |
|||
Line 997: | Line 997: | ||
<pre>[1,3435]</pre> |
<pre>[1,3435]</pre> |
||
The Haskell libraries provide a lot of flexibility – we could also reduce the sum |
The Haskell libraries provide a lot of flexibility – we could also reduce the sum and map (above) down to a single foldr: |
||
<lang haskell>import Data.Char (digitToInt) |
<lang haskell>import Data.Char (digitToInt) |