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 ] etc. You can even use full pattern guards (more powerful than GHC's) in your conditions! Jonathan Cast http://sourceforge.net/projects/fid-core http://sourceforge.net/projects/fid-emacs _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
