<!-- 
RSS generated by JIRA (4.4#649-r158309) at Wed Jun 19 23:52:35 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/MATCH-39/MATCH-39.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[MATCH-39] Allow matching of map expressions to restrict the set of keys present in the value to a subset of a specified set of keys</title>
                <link>http://dev.clojure.org/jira/browse/MATCH-39</link>
                <project id="10050" key="MATCH">core.match</project>
                        <description>&lt;p&gt;It is useful, to be able to constrain a match on a map value to limit the set of keys present in the value, without enforcing that the keys are all present in the value.&lt;/p&gt;

&lt;p&gt;The current :only option, enforces a strict matching of keys.&lt;/p&gt;

&lt;p&gt;{{(let [x {:a 1} (match &lt;span class=&quot;error&quot;&gt;&amp;#91;x&amp;#93;&lt;/span&gt; [({:a _ :b _} :only &lt;span class=&quot;error&quot;&gt;&amp;#91;:a :b&amp;#93;&lt;/span&gt;)])}} =&amp;gt; doesn&apos;t match&lt;/p&gt;

&lt;p&gt;This came up trying to write a precondition on the argument of a function, which allowed optional keys, but wanted to restrict the overall set of keys.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="15023">MATCH-39</key>
            <summary>Allow matching of map expressions to restrict the set of keys present in the value to a subset of a specified set of keys</summary>
                <type id="4" iconUrl="http://dev.clojure.org/jira/images/icons/improvement.gif">Enhancement</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="3">Duplicate</resolution>
                                <assignee username="dnolen">David Nolen</assignee>
                                <reporter username="hugoduncan">Hugo Duncan</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Nov 2011 11:03:28 -0600</created>
                <updated>Sun, 2 Jun 2013 11:36:18 -0500</updated>
                    <resolved>Sun, 2 Jun 2013 11:36:18 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="27333" author="dnolen" created="Mon, 21 Nov 2011 12:22:37 -0600"  >&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(match x
  ({:c 1} :has [:a :b]) :a0
  ...)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(match x
  ({:c 1} :contains [:a :b]) :a0
  ...)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Seems reasonable.&lt;/p&gt;</comment>
                    <comment id="27334" author="dnolen" created="Mon, 21 Nov 2011 12:34:22 -0600"  >&lt;p&gt;Ah misunderstood. You want something like :allowed.&lt;/p&gt;</comment>
                    <comment id="31201" author="dnolen" created="Sun, 2 Jun 2013 11:36:18 -0500"  >&lt;p&gt;This is a variant of &lt;a href=&quot;http://dev.clojure.org/jira/browse/MATCH-70&quot; title=&quot;Matches against maps are treated as wildcards, even though they are not&quot;&gt;&lt;del&gt;MATCH-70&lt;/del&gt;&lt;/a&gt;. You can not specify that some keys must be present by specifying the key and the specifying that the value of the key is a wildcard.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>