<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Programming with Passion</title>
	<atom:link href="http://mirfan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mirfan.wordpress.com</link>
	<description>Design, the Coding and Everything</description>
	<lastBuildDate>Tue, 26 Apr 2011 12:11:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mirfan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Programming with Passion</title>
		<link>http://mirfan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mirfan.wordpress.com/osd.xml" title="Programming with Passion" />
	<atom:link rel='hub' href='http://mirfan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Small Haskell idiom in PHP</title>
		<link>http://mirfan.wordpress.com/2010/08/09/small-haskell-idiom-in-php/</link>
		<comments>http://mirfan.wordpress.com/2010/08/09/small-haskell-idiom-in-php/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 10:42:02 +0000</pubDate>
		<dc:creator>Mohammed Irfan</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[haskell]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://mirfan.wordpress.com/?p=5</guid>
		<description><![CDATA[I&#8217;ve been watching Erik Meijer&#8217;s lectures on Functional Programming Fundamentals on Channel 9. In lecture 2 he shows this Haskell code: Can this be translated into PHP? Well, not so elegant as Haskell&#8217;s, I came up with the following code: Interesting, isn&#8217;t it? Filed under: programming Tagged: haskell, php<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mirfan.wordpress.com&amp;blog=310646&amp;post=5&amp;subd=mirfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been watching Erik Meijer&#8217;s lectures on Functional Programming Fundamentals on <a href="http://channel9.msdn.com/shows/Going+Deep/Lecture-Series-Erik-Meijer-Functional-Programming-Fundamentals-Chapter-1/">Channel 9</a>. In <a href="http://channel9.msdn.com/shows/Going+Deep/Lecture-Series-Erik-Meijer-Functional-Programming-Fundamentals-Chapter-2/">lecture 2</a> he shows this Haskell code:</p>
<p><pre class="brush: fsharp;">
factorial n = product [1..n]
</pre></p>
<p>Can this be translated into PHP? Well, not so elegant as Haskell&#8217;s, I came up with the following code:</p>
<p><pre class="brush: php;">
$n = 5;
$factorial = array_product(range(1, $n)); // for PHP5 only!
</pre></p>
<p>Interesting, isn&#8217;t it?</p>
<br />Filed under: <a href='http://mirfan.wordpress.com/category/programming/'>programming</a> Tagged: <a href='http://mirfan.wordpress.com/tag/haskell/'>haskell</a>, <a href='http://mirfan.wordpress.com/tag/php/'>php</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mirfan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mirfan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mirfan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mirfan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mirfan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mirfan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mirfan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mirfan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mirfan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mirfan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mirfan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mirfan.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mirfan.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mirfan.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mirfan.wordpress.com&amp;blog=310646&amp;post=5&amp;subd=mirfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mirfan.wordpress.com/2010/08/09/small-haskell-idiom-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Irfan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
