Re: [pure-lang-users] list comprehensions
Status: Beta
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-07-21 03:23:44
|
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.) -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |