
27 Jun
2007
27 Jun
'07
6:07 p.m.
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