[Haskell-cafe] Yet another implementation of cond

Andrea Rossato mailing_list at istitutocolli.org
Thu Jun 28 02:56:12 EDT 2007


On Wed, Jun 27, 2007 at 05:07:54PM -0500, Jon Cast wrote:
> I discovered this trick the other day, and didn't remember seeing it anywhere 
> as a cond implementation:
> 
> head $
>   [ e1 | cond1 ] ++
>   [ e2 | cond2 ] ++
>   [ e3 | cond3 ]

Cool!
Thanks for sharing it.

All the best,
andrea


More information about the Haskell-Cafe mailing list