[Haskell-cafe] generalized list comprehensions
Andrew Coppin
andrewcoppin at btinternet.com
Mon Nov 10 13:20:23 EST 2008
Mitchell, Neil wrote:
> In general:
>
> if boolean then [value] else []
>
> Can be written as:
>
> [value | boolean]
>
Is there any specific reason why this is valid?
More information about the Haskell-Cafe
mailing list