Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  oddsFrom3 function (Debdut Karmakar)


----------------------------------------------------------------------

Message: 1
Date: Mon, 17 Aug 2015 04:59:53 -0400
From: Debdut Karmakar <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] oddsFrom3 function
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

 

On 2015-08-17 03:21, Kim-Ee Yeoh wrote: 

> On Mon, Aug 17, 2015 at
1:32 PM, Debdut Karmakar <[email protected]> wrote:
> 
>> Sorry, I
wrote a wrong function, the correct version is: 
>> 
>> oddsFrom3 ::
[Integer]
>> oddsFrom3 = 3 : map (+2) oddsFrom3
> 
> You can get some
idea of lambda evaluation here:
> 
>
http://chrisuehlinger.com/LambdaBubblePop/ [2]
> 
> (Alas it doesn't
support let expressions much less let rec.)
> 
> Once you have a modicum
of intuition, you're now ready to appreciate the illustrated
step-by-step evaluation of this infinite list:
> 
>
http://stackoverflow.com/a/19749422 [3]
> 
> Based on the SO answer, you
can now work out your function on your own. 
> 
> -- Kim-Ee 
> 
>
_______________________________________________
> Beginners mailing
list
> [email protected]
>
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners [1]

Thanks,
this is what I wanted. Thanks and the problem has been resolved. 
-- 

A
GNU [4] LINUX [5] Patron 

Links:
------
[1]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
[2]
http://chrisuehlinger.com/LambdaBubblePop/
[3]
http://stackoverflow.com/a/19749422
[4] http://gnu.org
[5]
http://www.linuxfoundation.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150817/edad2b11/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 86, Issue 14
*****************************************

Reply via email to