[Haskell-beginners] any feedback on this solution

Chaddaï Fouché chaddai.fouche at gmail.com
Sat Feb 7 16:11:53 UTC 2015


On the other hand it will work here since the source is a list of digits
which have been doubled every two elements...

On Sat, Feb 7, 2015 at 5:06 PM, Chaddaï Fouché <chaddai.fouche at gmail.com>
wrote:

> You should probably not remove toDigitsRev, especially since it's normally
> a piece of the correct solution for sumDigits... Your current sumDigits is
> incorrect, try it on [100, 100].
>
> On Sat, Feb 7, 2015 at 5:01 PM, Roelof Wobben <r.wobben at home.nl> wrote:
>
>>  Oke,
>>
>> toDigitsRev was one of the steps of this exercise. but I can remove it.
>>
>> Roelof
>>
>>
>> Joel Williamson schreef op 7-2-2015 om 16:56:
>>
>> Roelof,
>>
>> It doesn't look like you ever call toDigitsRev. To keep the solution
>> clearer, you should remove any unneeded definitions.
>>
>> Joel
>>
>>
> --
> Jedaï
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20150207/9c3134d9/attachment.html>


More information about the Beginners mailing list