<?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: F#: Refactoring to active patterns</title>
	<atom:link href="http://www.markhneedham.com/blog/2010/01/07/f-refactoring-to-active-patterns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2010/01/07/f-refactoring-to-active-patterns/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2010/01/07/f-refactoring-to-active-patterns/comment-page-1/#comment-30172</link>
		<dc:creator>Mark Needham</dc:creator>
		<pubDate>Wed, 13 Jan 2010 07:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=2007#comment-30172</guid>
		<description>Nah you didn&#039;t miss anything I just wrote a very bad solution. 

I&#039;ve actually got it rewritten to this:

        let delimeters (value:string) = seq { for m in Regex.Matches(value, &quot;\[([^]]*)\]&quot;) do
                                                yield m.Groups.Item(0).Value } &#124;&gt; Seq.to_array

But your version is even simpler. Cool!</description>
		<content:encoded><![CDATA[<p>Nah you didn&#8217;t miss anything I just wrote a very bad solution. </p>
<p>I&#8217;ve actually got it rewritten to this:</p>
<p>        let delimeters (value:string) = seq { for m in Regex.Matches(value, &#8220;\[([^]]*)\]&#8221;) do<br />
                                                yield m.Groups.Item(0).Value } |> Seq.to_array</p>
<p>But your version is even simpler. Cool!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MIkeRo</title>
		<link>http://www.markhneedham.com/blog/2010/01/07/f-refactoring-to-active-patterns/comment-page-1/#comment-30165</link>
		<dc:creator>MIkeRo</dc:creator>
		<pubDate>Wed, 13 Jan 2010 05:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=2007#comment-30165</guid>
		<description>Hello...
I&#039;m confused why you would write:

----------------------------------
let delimeters (value:string) = Regex.Matches(value, &quot;\[(.)\]&quot;) &#124;&gt; 
                                    Seq.cast &#124;&gt; 
                                    Seq.map (fun (x:Match) -&gt; x.Groups) &#124;&gt;
                                    Seq.map (fun x -&gt; x &#124;&gt; Seq.cast &#124;&gt; Seq.nth 1) &#124;&gt;
                                    Seq.map (fun x -&gt; x.Value) &#124;&gt;
                                    Seq.to_array   
------------------------------
When you can just write:

[&#124; Regex.Matches(value, &quot;\[(.)\]&quot;).[0].Groups.[1].Value &#124;]

Or did I miss something?
thanks</description>
		<content:encoded><![CDATA[<p>Hello&#8230;<br />
I&#8217;m confused why you would write:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
let delimeters (value:string) = Regex.Matches(value, &#8220;\[(.)\]&#8220;) |&gt;<br />
                                    Seq.cast |&gt;<br />
                                    Seq.map (fun (x:Match) -&gt; x.Groups) |&gt;<br />
                                    Seq.map (fun x -&gt; x |&gt; Seq.cast |&gt; Seq.nth 1) |&gt;<br />
                                    Seq.map (fun x -&gt; x.Value) |&gt;<br />
                                    Seq.to_array<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
When you can just write:</p>
<p>[| Regex.Matches(value, "\[(.)\]&#8220;).[0].Groups.[1].Value |]</p>
<p>Or did I miss something?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention F#: Refactoring to active patterns at Mark Needham -- Topsy.com</title>
		<link>http://www.markhneedham.com/blog/2010/01/07/f-refactoring-to-active-patterns/comment-page-1/#comment-29924</link>
		<dc:creator>Tweets that mention F#: Refactoring to active patterns at Mark Needham -- Topsy.com</dc:creator>
		<pubDate>Thu, 07 Jan 2010 23:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=2007#comment-29924</guid>
		<description>[...] This post was mentioned on Twitter by Mark Needham, Isa Goksu. Isa Goksu said: RT @markhneedham: f# - refactoring to active patterns - http://bit.ly/8HS5yr [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Mark Needham, Isa Goksu. Isa Goksu said: RT @markhneedham: f# &#8211; refactoring to active patterns &#8211; <a href="http://bit.ly/8HS5yr" rel="nofollow">http://bit.ly/8HS5yr</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

