[Haskell-beginners] Mutable variables in do block?
Ozgur Akgun
ozgurakgun at gmail.com
Sun Feb 24 11:44:59 CET 2013
Hi,
On 24 February 2013 10:41, Emanuel Koczwara <poczta at emanuelkoczwara.pl>wrote:
> it appears that the first
> and second 'line' are just an ordinary immutable variables. Line 4 just
> hides the 'line' from line 2 (outer lambda). Am I right?
>
Exactly. You can try desugaring the do notation to see what's going on even
more clearly.
Best,
Ozgur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130224/b1f87d15/attachment.htm>
More information about the Beginners
mailing list