http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=117 (random site with example)
map is the functional equivalent of what you're trying to do there, not filter.
(number * number for number in nums)
http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=117 (random site with example)
map is the functional equivalent of what you're trying to do there, not filter.