<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for the nil_ptr</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this member.</description>
		<pubDate>Fri, 09 Jan 2009 06:06:21 +0000</pubDate>
		<copyright>1998-2009 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Generate all permutations of a list</title>
	<link>http://www.bytemycode.com/snippets/snippet/459/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/459/comments/</comments>
	<pubDate>Wed, 11 Oct 2006 14:41:21 +0000</pubDate>
	<dc:creator>nil_ptr</dc:creator>
	<category>permutations, permute, python</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/459/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Oct. 11th, 2006  2:41 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/459/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/nil_ptr/" title="Beginner">nil_ptr</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/permutations">permutations</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/permute">permute</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/python">python</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/459/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 10
			<p>This is snippet of code solves the interesting (and specialized) problem of generating all permutations of a list.  I hope you like recursion. <img src="http://www.bytemycode.com/img/wysiwyg/emo-smile.gif" />  For exmaple:<br /><br />permute( [0,1,2] )<br /><br />would return<br /><br />[[0,1,2],[0,2,1],[1,0,2],[1,2,0],[2,0,1],[2,1,0]]</p>
		]]>
	</description>
</item>
	</channel>
</rss>