<?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: Another LINQ puzzle</title>
	<atom:link href="http://igoro.com/archive/another-linq-puzzle/feed/" rel="self" type="application/rss+xml" />
	<link>http://igoro.com/archive/another-linq-puzzle/</link>
	<description>On programming, technology, and random things of interest</description>
	<lastBuildDate>Thu, 29 Jul 2010 00:28:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Little LINQ puzzle &#124; Igor Ostrovsky Blogging</title>
		<link>http://igoro.com/archive/another-linq-puzzle/comment-page-1/#comment-558</link>
		<dc:creator>Little LINQ puzzle &#124; Igor Ostrovsky Blogging</dc:creator>
		<pubDate>Wed, 09 Sep 2009 07:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/another-linq-puzzle/#comment-558</guid>
		<description>[...] For a slightly harder challenge, check out the next puzzle. [...]</description>
		<content:encoded><![CDATA[<p>[...] For a slightly harder challenge, check out the next puzzle. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roman</title>
		<link>http://igoro.com/archive/another-linq-puzzle/comment-page-1/#comment-364</link>
		<dc:creator>Roman</dc:creator>
		<pubDate>Wed, 17 Sep 2008 15:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/another-linq-puzzle/#comment-364</guid>
		<description>Because there is recursive enumeration of q (-&gt; closure) which is more evident if you rewrite it as:

q = new int[] { 1, 2 }.SelectMany(x =&gt; q, (x, y) =&gt; x + y);

when ToArray is called q is defined as above.

if you switch order there is no closure
q.SelectMany(y =&gt; new int[] { 1, 2 }, (x, y) =&gt; x + y);</description>
		<content:encoded><![CDATA[<p>Because there is recursive enumeration of q (-&gt; closure) which is more evident if you rewrite it as:</p>
<p>q = new int[] { 1, 2 }.SelectMany(x =&gt; q, (x, y) =&gt; x + y);</p>
<p>when ToArray is called q is defined as above.</p>
<p>if you switch order there is no closure<br />
q.SelectMany(y =&gt; new int[] { 1, 2 }, (x, y) =&gt; x + y);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ</title>
		<link>http://igoro.com/archive/another-linq-puzzle/comment-page-1/#comment-362</link>
		<dc:creator>TJ</dc:creator>
		<pubDate>Tue, 16 Sep 2008 20:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/another-linq-puzzle/#comment-362</guid>
		<description>haha, cmon people who uses VB anymore. Is it really that hard to figure out the difference between C# and VB?</description>
		<content:encoded><![CDATA[<p>haha, cmon people who uses VB anymore. Is it really that hard to figure out the difference between C# and VB?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor Ostrovsky</title>
		<link>http://igoro.com/archive/another-linq-puzzle/comment-page-1/#comment-359</link>
		<dc:creator>Igor Ostrovsky</dc:creator>
		<pubDate>Mon, 15 Sep 2008 07:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/another-linq-puzzle/#comment-359</guid>
		<description>@Scorcels: Here is a VB version of the puzzle.

        Dim q As IEnumerable(Of Integer) = Enumerable.Range(1, 2)
        q = From x In Enumerable.Range(1, 2) _
            From y In q _
            Select x + y
        q.ToArray()</description>
		<content:encoded><![CDATA[<p>@Scorcels: Here is a VB version of the puzzle.</p>
<p>        Dim q As IEnumerable(Of Integer) = Enumerable.Range(1, 2)<br />
        q = From x In Enumerable.Range(1, 2) _<br />
            From y In q _<br />
            Select x + y<br />
        q.ToArray()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scorcels</title>
		<link>http://igoro.com/archive/another-linq-puzzle/comment-page-1/#comment-358</link>
		<dc:creator>Scorcels</dc:creator>
		<pubDate>Mon, 15 Sep 2008 05:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/another-linq-puzzle/#comment-358</guid>
		<description>Do you have VB version?

Thanks</description>
		<content:encoded><![CDATA[<p>Do you have VB version?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
