<?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: Project Euler in F# &#8211; Problem 52</title>
	<atom:link href="http://www.fsharp.it/2009/03/20/project-euler-in-f-problem-52/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fsharp.it/2009/03/20/project-euler-in-f-problem-52/</link>
	<description>Functional programming on .Net</description>
	<lastBuildDate>Wed, 18 Aug 2010 12:04:06 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: claudio</title>
		<link>http://www.fsharp.it/2009/03/20/project-euler-in-f-problem-52/comment-page-1/#comment-9657</link>
		<dc:creator>claudio</dc:creator>
		<pubDate>Fri, 18 Dec 2009 13:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=116#comment-9657</guid>
		<description>The problem statement is ambiguous and it is not clear if repeated digits are allowed or not, but I have to agree with you that checking the frequency of each digit&#039;s occurrence is a safer approach.</description>
		<content:encoded><![CDATA[<p>The problem statement is ambiguous and it is not clear if repeated digits are allowed or not, but I have to agree with you that checking the frequency of each digit&#8217;s occurrence is a safer approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darrell Plank</title>
		<link>http://www.fsharp.it/2009/03/20/project-euler-in-f-problem-52/comment-page-1/#comment-9653</link>
		<dc:creator>Darrell Plank</dc:creator>
		<pubDate>Fri, 18 Dec 2009 12:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=116#comment-9653</guid>
		<description>It would appear that your definition doesn&#039;t work for multiple identical digits.  In particular, you say you create a set partially to discard duplicates when really you don&#039;t want to do that or you end up saying that &quot;122&quot; has the same digits as &quot;12&quot;.  It apparently works in this particular case, but strictly speaking, you should be checking the frequency of each digit&#039;s occurence in addition to it&#039;s mere presence. The fact that this solution works is, to some extent, luck.</description>
		<content:encoded><![CDATA[<p>It would appear that your definition doesn&#8217;t work for multiple identical digits.  In particular, you say you create a set partially to discard duplicates when really you don&#8217;t want to do that or you end up saying that &#8220;122&#8243; has the same digits as &#8220;12&#8243;.  It apparently works in this particular case, but strictly speaking, you should be checking the frequency of each digit&#8217;s occurence in addition to it&#8217;s mere presence. The fact that this solution works is, to some extent, luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: claudio</title>
		<link>http://www.fsharp.it/2009/03/20/project-euler-in-f-problem-52/comment-page-1/#comment-2393</link>
		<dc:creator>claudio</dc:creator>
		<pubDate>Sat, 21 Mar 2009 16:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=116#comment-2393</guid>
		<description>I used Seq.map because I wanted to get a sequence of integers and not a string. 

With my code, if we pass 123 as input we get [1; 2; 3;]. 
Without Seq.map, with the same input we get the string &quot;123&quot; which is an array of characters and not integers.

However, in this case there is no difference for the final output, so using Seq.map could be avoided.</description>
		<content:encoded><![CDATA[<p>I used Seq.map because I wanted to get a sequence of integers and not a string. </p>
<p>With my code, if we pass 123 as input we get [1; 2; 3;].<br />
Without Seq.map, with the same input we get the string &#8220;123&#8243; which is an array of characters and not integers.</p>
<p>However, in this case there is no difference for the final output, so using Seq.map could be avoided.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Freed Myers</title>
		<link>http://www.fsharp.it/2009/03/20/project-euler-in-f-problem-52/comment-page-1/#comment-2388</link>
		<dc:creator>Freed Myers</dc:creator>
		<pubDate>Sat, 21 Mar 2009 08:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=116#comment-2388</guid>
		<description>Why do the Seq.map in digits?  I tried it with just n.ToString() and it seemed to work fine, though I had to change the signature to
let digits (n : int)</description>
		<content:encoded><![CDATA[<p>Why do the Seq.map in digits?  I tried it with just n.ToString() and it seemed to work fine, though I had to change the signature to<br />
let digits (n : int)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
