<?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: Perl vs. Python One-Liner</title>
	<atom:link href="http://yaniv.leviathanonline.com/blog/riddles/perl-vs-python-one-liner/feed/" rel="self" type="application/rss+xml" />
	<link>http://yaniv.leviathanonline.com/blog/riddles/perl-vs-python-one-liner/</link>
	<description>Strain your Brain</description>
	<lastBuildDate>Tue, 13 Sep 2011 13:21:47 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Nadav</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/perl-vs-python-one-liner/comment-page-1/#comment-14</link>
		<dc:creator>Nadav</dc:creator>
		<pubDate>Tue, 22 May 2007 14:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/riddles/perl-vs-python-one-liner/#comment-14</guid>
		<description>actually, a shorter function would be:
lambda n,l=[]:l.append(lambda k,x:(k==x)*[x]or(k%x==0 and[x]+l[0](k/x,x))or l[0](k,x+1))or l[0](n,2)</description>
		<content:encoded><![CDATA[<p>actually, a shorter function would be:<br />
lambda n,l=[]:l.append(lambda k,x:(k==x)*[x]or(k%x==0 and[x]+l[0](k/x,x))or l[0](k,x+1))or l[0](n,2)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nadav</title>
		<link>http://yaniv.leviathanonline.com/blog/riddles/perl-vs-python-one-liner/comment-page-1/#comment-13</link>
		<dc:creator>Nadav</dc:creator>
		<pubDate>Tue, 22 May 2007 14:02:55 +0000</pubDate>
		<guid isPermaLink="false">http://yaniv.leviathanonline.com/blog/riddles/perl-vs-python-one-liner/#comment-13</guid>
		<description>(Don&#039;t look before you have solved the above riddle)
What does the next python one-liner function stands for?
lambda n,l=[]:l.append(lambda k,x:(k==1)*[1]or(k%x==0 and[x]+l[0](k/x,x))or l[0](k,x+1))or l[0](n,2)[:-1]
Also, try to write a shorter one-liner with the same functionallity</description>
		<content:encoded><![CDATA[<p>(Don&#8217;t look before you have solved the above riddle)<br />
What does the next python one-liner function stands for?<br />
lambda n,l=[]:l.append(lambda k,x:(k==1)*[1]or(k%x==0 and[x]+l[0](k/x,x))or l[0](k,x+1))or l[0](n,2)[:-1]<br />
Also, try to write a shorter one-liner with the same functionallity</p>
]]></content:encoded>
	</item>
</channel>
</rss>

