<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Lambda at Work</title>
	<atom:link href="http://push.cx/2006/lambda-at-work/feed" rel="self" type="application/rss+xml" />
	<link>http://push.cx/2006/lambda-at-work</link>
	<description>A traveling geek&#039;s blog on development, games, and the web</description>
	<lastBuildDate>Tue, 10 Apr 2012 23:41:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Peter Harkins</title>
		<link>http://push.cx/2006/lambda-at-work/comment-page-1#comment-63</link>
		<dc:creator>Peter Harkins</dc:creator>
		<pubDate>Fri, 31 Mar 2006 15:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://push.cx/2006/lambda-at-work#comment-63</guid>
		<description>That&#039;s a nice way to solve the example problem, thanks for sharing it.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a nice way to solve the example problem, thanks for sharing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Turner</title>
		<link>http://push.cx/2006/lambda-at-work/comment-page-1#comment-59</link>
		<dc:creator>Jamie Turner</dc:creator>
		<pubDate>Wed, 29 Mar 2006 01:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://push.cx/2006/lambda-at-work#comment-59</guid>
		<description>I realize this is a post specifically about lambda, but just as a comment on best practices, using the operator module is much more efficient in sort(), map(), filter(), etc--that lambda getting invoked many, many times on big lists is slow.

&lt;code lang=&quot;python&quot;&gt;
import operator
list.sort(key=operator.itemgetter(1))
&lt;/code&gt;

As a general rule, if at all possible, I try to use the operator module inside those map()-like things; but having the flexibility of an inline lambda where a builtin won&#039;t do the trick is very nice indeed.</description>
		<content:encoded><![CDATA[<p>I realize this is a post specifically about lambda, but just as a comment on best practices, using the operator module is much more efficient in sort(), map(), filter(), etc&#8211;that lambda getting invoked many, many times on big lists is slow.</p>
<pre>&nbsp;
<span style="color: #b1b100;">import</span> operator
<span style="color: #b1b100;">list</span>.<span style="color: #202020;">sort</span><span style="color: #66cc66;">&#40;</span>key=operator.<span style="color: #202020;">itemgetter</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre>
<p>As a general rule, if at all possible, I try to use the operator module inside those map()-like things; but having the flexibility of an inline lambda where a builtin won&#8217;t do the trick is very nice indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: McKay Salisbury</title>
		<link>http://push.cx/2006/lambda-at-work/comment-page-1#comment-58</link>
		<dc:creator>McKay Salisbury</dc:creator>
		<pubDate>Wed, 29 Mar 2006 00:39:09 +0000</pubDate>
		<guid isPermaLink="false">http://push.cx/2006/lambda-at-work#comment-58</guid>
		<description>Gah!

What happened to the old push.cx!!

I want those old posts back!!!

I wanted to look up something that you had there before, to link to a friend? What am I supposed to do?</description>
		<content:encoded><![CDATA[<p>Gah!</p>
<p>What happened to the old push.cx!!</p>
<p>I want those old posts back!!!</p>
<p>I wanted to look up something that you had there before, to link to a friend? What am I supposed to do?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

