[Haskell-beginners] oddsFrom3 function

akash g akaberto at gmail.com
Mon Aug 17 06:35:54 UTC 2015


Not a problem.  And I should have thought about what you wanted too.

This version will give you an infinite list of odd numbers from 3.


On Mon, Aug 17, 2015 at 12:02 PM, Debdut Karmakar <debdutk at gnulinuxed.tk>
wrote:

> Sorry, I wrote a wrong function, the correct version is:
>
> oddsFrom3 :: [Integer]
> oddsFrom3 = 3 : map (+2) oddsFrom3
> --
>
> A* GNU <http://gnu.org> Linux <http://www.linuxfoundation.org/>* Patron
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150817/5331a746/attachment.html>


More information about the Beginners mailing list