[seqfan] Re: Haskell program for A000079

Reinhard Zumkeller reinhard.zumkeller at gmail.com
Wed Jan 22 22:49:40 CET 2014


You are right! I'm sorry for this "typo".
Thank you!
And have fun to practice Haskell!
Best regards
Reinhard


2014/1/22 Allan Wechsler <acwacw at gmail.com>

> The first Haskell program for A000079 (powers of 2) looks wrong to me. But
> I am only just starting to "learn me a Haskell", so rather than edit I
> thought I'd ask here first.
>
> The program says:
>
> a000079 n = (2 ^)
>
> I think that "n" is wrong and it should just say
>
> a000079 = (2 ^)
>
> or, if we don't want to use a section,
>
> a000079 n = (2 ^ n)
>
> Can anybody confirm this? Thanks for your help.
>
> _______________________________________________
>
> Seqfan Mailing list - http://list.seqfan.eu/
>



More information about the SeqFan mailing list