[Haskell-cafe] Noob question about list comprehensions
Tako Schotanus
tako at codejive.org
Wed Feb 16 12:40:35 CET 2011
Ok, thanks all, that was what I was looking for :)
-Tako
On Wed, Feb 16, 2011 at 10:46, Ozgur Akgun <ozgurakgun at gmail.com> wrote:
> On 16 February 2011 09:19, Tako Schotanus <tako at codejive.org> wrote:
>
>> I wondered if there was a way for a guard in a list comprehension to refer
>> to the item being produced?
>>
>
>
>> I'm just wondering about this very specific case
>>
>
> Then, the answer is no.
>
> As others have noted, let binding is the way to go.
>
> Ozgur
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110216/8f42d8c4/attachment.htm>
More information about the Haskell-Cafe
mailing list