<?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: Erlang: ETS Matching with Guards (select/2)</title>
	<atom:link href="http://www.rustyrazorblade.com/2008/10/ets-matching-with-guards-select2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com/2008/10/ets-matching-with-guards-select2/</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Fri, 03 Sep 2010 03:50:22 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ulf Wiger</title>
		<link>http://www.rustyrazorblade.com/2008/10/ets-matching-with-guards-select2/comment-page-1/#comment-30098</link>
		<dc:creator>Ulf Wiger</dc:creator>
		<pubDate>Thu, 16 Oct 2008 21:47:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=269#comment-30098</guid>
		<description>Also check out the man page for ms_transform (in stdlib), &lt;a href=&quot;http://www.erlang.org/doc/man/ms_transform.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.

It allows you to write select patterns in a much nicer syntax. For your example:

Eshell V5.6.4  (abort with ^G)
1&gt; ets:fun2ms(fun({_,X}=Obj) when X &gt; 0 -&gt; Obj end).
[{{&#039;_&#039;,&#039;$1&#039;},[{&#039;&gt;&#039;,&#039;$1&#039;,0}],[&#039;$_&#039;]}]</description>
		<content:encoded><![CDATA[<p>Also check out the man page for ms_transform (in stdlib), <a href="http://www.erlang.org/doc/man/ms_transform.html" rel="nofollow">here</a>.</p>
<p>It allows you to write select patterns in a much nicer syntax. For your example:</p>
<p>Eshell V5.6.4  (abort with ^G)<br />
1&gt; ets:fun2ms(fun({_,X}=Obj) when X &gt; 0 -&gt; Obj end).<br />
[{{'_','$1'},[{'&gt;','$1',0}],['$_']}]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
