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:  Variable re-use (Alexey Shmalko)


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

Message: 1
Date: Sun, 3 May 2015 21:19:25 +0300
From: Alexey Shmalko <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Variable re-use
Message-ID:
        <CAFC2PC5n8u3=MbHoR1=pjs0gtm_0+puxfmoxftxajxz3yhr...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Sun, May 3, 2015 at 2:07 PM Stanislaw Findeisen <
[email protected]> wrote:

> On 2015-04-28 12:15, Alexey Shmalko wrote:
> > I'm sorry, my example should've been:
> >
> > [1,2,3] >>= \a -> [a+1] >>= \a -> return a
>
> Or just:
>
> [1,2,3] >>= (return . (+1))
>

Or just:

[2,3,4]

The point of the example was to desugar original do notation and show there
are two `a`s involved.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150503/34935cec/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 83, Issue 3
****************************************

Reply via email to