[Haskell-cafe] Re: Would someone explain this code to me?

Justin Bailey jgbailey at gmail.com
Wed Dec 6 14:39:00 EST 2006


On 06 Dec 2006 19:33:51 +0000, Jón Fairbairn <jon.fairbairn at cl.cam.ac.uk>
wrote:
>
> > and in the where statement:
> >
> >             T _ a y b = ins s
>
> Here it's a pattern match. So if ins s returns (T x a' y'
> b'), then a = a'; y = y'; b = b' are used in the expresion
> covered by the where clause.


Great, thanks for clearing that up. Sometimes Haskell is a bit too concise!

Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20061206/d03dda4c/attachment.htm


More information about the Haskell-Cafe mailing list