On Mon, 2008-07-21 at 05:23 +0200, Albert Graef wrote:
> Eddie Rucker wrote:
> >> [v; v = map (\rw -> rw!2 + rw!4) ranked; v > 0];
> >
> > Thanks Jiri, that works, but it is still not in the list comprehension spirit (without filter, map, fold, and zip)
> > I was looking for.
>
> How about:
>
> [v; v = [rw!2 + rw!4; rw = ranked]; v > 0];
>
> (Haven't checked this, though.)
>
That's the ticket! Jiri's map as a list comprehension and I should have
seen that. Not making any excuses, but this sinus headache for the last
few days has got me all messed up.
e.r.
|