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.  Partial application and lazy evalutaion (Shishir Srivastava)
   2. Re:  Partial application and lazy evalutaion (Harald Hanche-Olsen)


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

Message: 1
Date: Sat, 15 Aug 2015 13:24:15 +0100
From: Shishir Srivastava <[email protected]>
To: beginners <[email protected]>
Subject: [Haskell-beginners] Partial application and lazy evalutaion
Message-ID:
        <CALe5RTvA9oVm3diEw=y8uucdcfaah82g4nqr1uyuclpamfa...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

Is partial application feature of functions in haskell a direct outcome of
lazy evaluation ?

i.e Since functions are not evaluated until at the point where results are
required this allows haskell functions to be partially applied because
they're not evaluated and hence exist as thunk.

Thanks,
Shishir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150815/c042f177/attachment-0001.html>

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

Message: 2
Date: Sat, 15 Aug 2015 17:16:04 +0200
From: Harald Hanche-Olsen <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Partial application and lazy
        evalutaion
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

Shishir Srivastava wrote:
> Is partial application feature of functions in haskell a direct outcome
> of lazy evaluation ?

I wouldn't say so. If f is a function of two variables, then you can 
think of (f x) as being just an easier way to write \y -> f x y.

And surely, you can do that in any language with lambdas, whether lazy 
or not. You can even do it in javascript: function (y) { return f(x,y) }.

? Harald


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

Subject: Digest Footer

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


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

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

Reply via email to