Munchausen numbers: Difference between revisions

Content added Content deleted
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, map, and unfoldr (above) down to a single foldr:
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)